chore: standardise to yarn
This commit is contained in:
28
Dockerfile
28
Dockerfile
@@ -1,23 +1,25 @@
|
||||
FROM public.ecr.aws/docker/library/node:20 AS builder
|
||||
RUN npm install -g typescript@5.4.5
|
||||
|
||||
RUN npm install -g typescript bun
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
RUN bun install
|
||||
WORKDIR /app/drift-common/protocol/sdk
|
||||
RUN yarn build
|
||||
WORKDIR /app/drift-common/common-ts
|
||||
RUN yarn build
|
||||
WORKDIR /app
|
||||
RUN bun esbuild.config.js
|
||||
|
||||
FROM public.ecr.aws/docker/library/node:20-alpine
|
||||
WORKDIR /app/drift-common/protocol/sdk
|
||||
RUN yarn && yarn build
|
||||
|
||||
WORKDIR /app/drift-common/common-ts
|
||||
RUN yarn && yarn build
|
||||
|
||||
WORKDIR /app
|
||||
RUN yarn && yarn build
|
||||
|
||||
FROM public.ecr.aws/docker/library/node:20.18.1-alpine
|
||||
RUN apk add python3 make g++ --virtual .build &&\
|
||||
npm install -C /lib bigint-buffer @triton-one/yellowstone-grpc@1.3.0 &&\
|
||||
apk del .build
|
||||
|
||||
COPY --from=builder /app/lib/ ./lib/
|
||||
RUN apk add --virtual .build python3 g++ make &&\
|
||||
npm install -C lib bigint-buffer @triton-one/yellowstone-grpc@1.3.0 &&\
|
||||
apk del .build &&\
|
||||
rm -rf /root/.cache/ /root/.npm /usr/local/lib/node_modules
|
||||
|
||||
ENV NODE_ENV=production
|
||||
EXPOSE 9464
|
||||
|
||||
Reference in New Issue
Block a user