fix: update dockerfile
This commit is contained in:
parent
6b72b3e606
commit
16b5bb9fa0
|
|
@ -15,6 +15,9 @@ WORKDIR /usr/src/app
|
||||||
# Salin file penting untuk caching dependencies
|
# Salin file penting untuk caching dependencies
|
||||||
COPY package.json pnpm-lock.yaml* ./
|
COPY package.json pnpm-lock.yaml* ./
|
||||||
|
|
||||||
|
# Salin vendor jika diperlukan (ckeditor misalnya)
|
||||||
|
COPY vendor/ckeditor5 ./vendor/ckeditor5
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN pnpm install --frozen-lockfile
|
RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
|
|
@ -24,9 +27,6 @@ COPY . .
|
||||||
# Salin ecosystem config
|
# Salin ecosystem config
|
||||||
COPY ecosystem.config.js ./
|
COPY ecosystem.config.js ./
|
||||||
|
|
||||||
# Salin vendor jika diperlukan (ckeditor misalnya)
|
|
||||||
COPY vendor/ckeditor5 ./vendor/ckeditor5
|
|
||||||
|
|
||||||
# Build Next.js
|
# Build Next.js
|
||||||
RUN pnpm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue