Skip to content

Commit

Permalink
Merge pull request #67 from scio-labs/feat/improve-frontend-productio…
Browse files Browse the repository at this point in the history
…n-dockerfile

feat: Improve frontend production build Dockerfile
  • Loading branch information
wottpal authored May 15, 2024
2 parents f882bd5 + 503c07b commit 3da078f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lovely-parents-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inkathon/frontend": patch
---

feat: Fix frontend production build Dockerfile
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 3da078f

Please sign in to comment.