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

This commit is contained in:
Asep Haryana Saputra committed 2026-05-21 12:27:07 +00:00
1 parent 0530bf9a60
commit 41197fd2c2
8 files changed
+83 -19

No files matched your search

+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