forked from naskya/firefish
fix: don't use lockfile in Dockerfile
This commit is contained in:
parent
8802c36c62
commit
4176b3352c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue