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