File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ COPY package.json pnpm-lock.yaml ./
1717COPY run-jiti.js ./
1818COPY src/features/build-info/script-to-generate-json.ts src/features/build-info/build-info.gen.json ./src/features/build-info/
1919COPY prisma/schema.prisma ./prisma/
20- RUN pnpm install --frozen-lockfile --prod=false
20+ RUN pnpm install --frozen-lockfile
2121
2222# copy source
2323COPY . .
@@ -34,20 +34,17 @@ FROM node:22-alpine AS runtime
3434WORKDIR /app
3535
3636# install pnpm
37- RUN npm install -g pnpm
38- RUN npm install -g npm-run-all
37+ RUN npm install -g pnpm npm-run-all
38+
39+ COPY .env ./
40+
3941
4042
4143# # copy output build and package.json from builder
4244COPY --from=builder /app/.output ./.output
4345COPY --from=builder /app/package.json ./package.json
44- COPY --from=builder /app/src/features/build-info/build-info.gen.json ./src/features/build-info/build-info.gen.json
45- COPY --from=builder /app/src/features/build-info/script-to-generate-json.ts ./src/features/build-info/script-to-generate-json.ts
46-
47- # install only production dependencies
48-
49-
50- RUN pnpm install --prod
46+ COPY --from=builder /app/pnpm-lock.yaml ./pnpm-lock.yaml
47+ COPY --from=builder /app/node_modules ./node_modules
5148
5249ENV NODE_ENV=production
5350
You can’t perform that action at this time.
0 commit comments