From 768be704cf5a48936e4f2de847c504fae44c086c Mon Sep 17 00:00:00 2001 From: Suchin Sapphasitthatha Date: Tue, 5 Aug 2025 05:54:13 +0000 Subject: [PATCH] =?UTF-8?q?=E0=B8=97=E0=B8=94=E0=B8=AA=E0=B8=AD=E0=B8=9A?= =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82=E0=B8=84=E0=B8=B3?= =?UTF-8?q?=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87=20npm=20ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 019c99f2..cc4e6d2e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -6,8 +6,8 @@ WORKDIR /app # Install app dependencies COPY package*.json ./ - -RUN npm ci +RUN npm install +# RUN npm ci # Copy source files and build the app COPY . . @@ -17,7 +17,6 @@ RUN npm run build FROM node:20.19.4-alpine ENV NODE_ENV=production -USER node # Create app directory WORKDIR /app @@ -28,6 +27,7 @@ COPY --from=build-stage /app/dist ./dist # Install only production dependencies COPY package*.json ./ RUN npm ci --production +USER node # Define the entrypoint and default command # If you have a custom entrypoint script