add deployment config for sb-on-demand-crank, fix BN import
This commit is contained in:
parent
e2841d72fc
commit
95ba57627e
|
@ -0,0 +1,13 @@
|
|||
app = "switchboard-crank"
|
||||
kill_signal = "SIGINT"
|
||||
kill_timeout = 5
|
||||
|
||||
[build]
|
||||
dockerfile = "../ts/client/scripts/Dockerfile.scripts"
|
||||
|
||||
[experimental]
|
||||
cmd = ["yarn", "tsx", "ts/client/scripts/sb-on-demand-crank.ts"]
|
||||
|
||||
[[vm]]
|
||||
size = "shared-cpu-1x"
|
||||
memory = "512mb"
|
|
@ -0,0 +1,22 @@
|
|||
FROM node:18 as builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn install
|
||||
|
||||
COPY ts ts
|
||||
|
||||
RUN ls
|
||||
|
||||
# scripts are run with tsx, no upfront build needed
|
||||
# RUN yarn build
|
||||
|
||||
FROM node:18-slim as run
|
||||
|
||||
LABEL fly_launch_runtime="nodejs"
|
||||
|
||||
COPY --from=builder /app /app
|
||||
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV production
|
|
@ -1,4 +1,4 @@
|
|||
import { AnchorProvider, Wallet } from '@coral-xyz/anchor';
|
||||
import { AnchorProvider, BN, Wallet } from '@coral-xyz/anchor';
|
||||
import {
|
||||
AccountInfo,
|
||||
Cluster,
|
||||
|
|
Loading…
Reference in New Issue