From cd30bc4561c4101ca222e95bfc5646f2c7299129 Mon Sep 17 00:00:00 2001 From: hanif salafi Date: Thu, 3 Jul 2025 19:23:45 +0700 Subject: [PATCH] feat: update Dockerfile --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 335d444..5b931f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ FROM node:23.5.0-alpine ENV PORT 3000 # Install pnpm secara global -RUN npm install -g pnpm +RUN npm install -g npm # Membuat direktori aplikasi dan mengatur sebagai working directory WORKDIR /usr/src/app @@ -17,17 +17,18 @@ COPY package.json ./ COPY vendor/ckeditor5 ./vendor/ckeditor5 # Install dependencies -RUN pnpm install +RUN npm install # RUN pnpm install --frozen-lockfile # Menyalin source code aplikasi COPY . . # Build aplikasi -RUN NODE_OPTIONS="--max-old-space-size=4096" pnpm next build +# RUN NODE_OPTIONS="--max-old-space-size=4096" npm run build +RUN npm run build # Expose port untuk server EXPOSE 3000 # Perintah untuk menjalankan aplikasi -CMD ["pnpm", "run", "start"] \ No newline at end of file +CMD ["npm", "run", "start"] \ No newline at end of file