1
0
Fork 1
mirror of https://example.com synced 2024-11-22 07:06:38 +09:00

fix: don't use lockfile in Dockerfile

This commit is contained in:
naskya 2023-11-10 03:21:46 +09:00
parent 8802c36c62
commit 4176b3352c
Signed by: naskya
GPG key ID: 164DFF24E2D40139

View file

@ -32,7 +32,7 @@ COPY packages/backend/native-utils/npm/linux-x64-musl/package.json packages/back
COPY packages/backend/native-utils/npm/linux-arm64-musl/package.json packages/backend/native-utils/npm/linux-arm64-musl/package.json
# Configure pnpm, and install dev mode dependencies for compilation
RUN corepack enable && corepack prepare pnpm@latest --activate && pnpm i --frozen-lockfile
RUN corepack enable && corepack prepare pnpm@latest --activate && pnpm i
# Copy in the rest of the native-utils rust files
COPY packages/backend/native-utils packages/backend/native-utils/
@ -50,7 +50,7 @@ RUN bash -c 'NEW_COMMIT=$(git rev-parse --short HEAD) && sed -i -r "s/\"version\
RUN env NODE_ENV=production sh -c "pnpm run --filter '!native-utils' build && pnpm run gulp"
# Trim down the dependencies to only those for production
RUN pnpm i --prod --frozen-lockfile
RUN pnpm i --prod
## Runtime container
FROM node:20