feat: rollback using pnpm

This commit is contained in:
hanif salafi 2026-01-13 02:20:57 +07:00
parent ad5d048e78
commit cba94cf0a9
1 changed files with 5 additions and 5 deletions

View File

@ -18,20 +18,20 @@ COPY package.json ./
COPY vendor/ckeditor5 ./vendor/ckeditor5
# Install dependencies
RUN npm install
# RUN npm install --frozen-lockfile
RUN pnpm install
# RUN pnpm install --frozen-lockfile
# Menyalin source code aplikasi
COPY . .
# Build aplikasi
RUN NODE_OPTIONS="--max-old-space-size=4096" npm run build
RUN NODE_OPTIONS="--max-old-space-size=4096" pnpm run build
# Expose port untuk server
EXPOSE 3000
# Perintah untuk menjalankan aplikasi
CMD ["npm", "run", "start"]
CMD ["pnpm", "run", "start"]
# # Gunakan base image Node.js Alpine yang ringan
@ -55,7 +55,7 @@ CMD ["npm", "run", "start"]
# COPY vendor/ckeditor5 ./vendor/ckeditor5
# # Install dependencies
# RUN npm install --frozen-lockfile
# RUN pnpm install --frozen-lockfile
# # Salin semua source code
# COPY . .