From b1d105f3cba2f7a5bf004a9ebacb44664fc67491 Mon Sep 17 00:00:00 2001 From: ical10 Date: Wed, 15 May 2024 12:00:03 +0800 Subject: [PATCH 1/2] feat: Improve frontend production build Dockerfile --- Dockerfile.frontend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.frontend b/Dockerfile.frontend index c422a9d..1f7355e 100644 --- a/Dockerfile.frontend +++ b/Dockerfile.frontend @@ -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 From 503c07b6c0d877463c97ea8a83da176893ee8461 Mon Sep 17 00:00:00 2001 From: Dennis Zoma <3930150+wottpal@users.noreply.github.com> Date: Wed, 15 May 2024 10:11:35 +0200 Subject: [PATCH 2/2] Create lovely-parents-wait.md --- .changeset/lovely-parents-wait.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/lovely-parents-wait.md diff --git a/.changeset/lovely-parents-wait.md b/.changeset/lovely-parents-wait.md new file mode 100644 index 0000000..c38e157 --- /dev/null +++ b/.changeset/lovely-parents-wait.md @@ -0,0 +1,5 @@ +--- +"@inkathon/frontend": patch +--- + +feat: Fix frontend production build Dockerfile