mtcute/e2e/node/Dockerfile.build

19 lines
498 B
Text
Raw Normal View History

FROM node:20-alpine
WORKDIR /app
RUN apk add python3 make g++ && \
corepack enable && \
2024-05-06 18:44:11 +03:00
corepack prepare pnpm@9.0.6 --activate
2024-04-22 00:05:08 +03:00
COPY ../.. /app/
RUN pnpm install --frozen-lockfile && \
pnpm -C packages/tl run gen-code && \
# verdaccio is configured to allow anonymous publish, but npm requires a token 🥴
npm config set //verdaccio:4873/:_authToken fake-token
ENV REGISTRY="http://verdaccio:4873/"
ENV E2E="1"
ENTRYPOINT [ "node", "/app/scripts/publish.js" ]
CMD [ "all" ]