Skip to content

Commit

Permalink
feat: Improve frontend production build Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ical10 committed May 15, 2024
1 parent f882bd5 commit b1d105f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.frontend
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RUN pnpm install --offline
# Then use pnpm deploy command to prune the dependencies
FROM with_all_deps as builder
RUN NEXT_BUILD_STANDALONE=true pnpm --filter='*frontend' build \
&& pnpm --filter='*frontend' deploy pruned --prod
&& pnpm --filter='*frontend' deploy pruned --prod --force

# STAGE 5: Create a clean production image - only take pruned assets
FROM node:18-alpine AS runner
Expand Down

0 comments on commit b1d105f

Please sign in to comment.