chore: standardise to yarn

This commit is contained in:
Jack Waller
2025-01-08 16:54:19 +11:00
parent 8bea223f27
commit 356bf2b912
3 changed files with 85 additions and 67 deletions

View File

@@ -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