feat(build): optimize Dockerfile to build vendor packages during image build and streamline package.json scripts

This commit is contained in:
Asep Haryana Saputra
2026-05-21 12:27:07 +00:00
parent 0530bf9a60
commit 41197fd2c2
8 changed files with 83 additions and 19 deletions
+3 -2
View File
@@ -30,8 +30,9 @@ RUN pnpm install --no-frozen-lockfile
# Copy the rest of the application
COPY . .
# Build step if required (e.g. build:web)
RUN pnpm run build:web || true
# Build vendor packages and app bundles during image build
RUN pnpm run prepare:vendor
RUN pnpm run build
# Set node environment
ENV NODE_ENV=production