From a9cf0b3af7dd3fa8ff2c62f51dd3be1a71166171 Mon Sep 17 00:00:00 2001 From: kittapath-Jool Date: Fri, 19 Sep 2025 23:54:57 +0700 Subject: [PATCH] edit build --- docker/Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 07492be..e4c0258 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,13 +1,13 @@ # Build Stage -FROM node:lts-alpine AS build-stage +FROM node:20.19.4-alpine AS build-stage # Create app directory WORKDIR /app # Install app dependencies COPY package*.json ./ - -RUN npm ci +#RUN npm ci +RUN npm install # Copy source files and build the app COPY . . @@ -17,7 +17,7 @@ RUN npm run build FROM node:lts-alpine ENV NODE_ENV production -USER node +# USER node # Create app directory WORKDIR /app @@ -27,7 +27,9 @@ COPY --from=build-stage /app/dist ./dist # Install only production dependencies COPY package*.json ./ -RUN npm ci --production +#RUN npm ci --production +RUN npm install +USER node # Define the entrypoint and default command # If you have a custom entrypoint script