ทดสอบแก้ไขคำสั่ง npm ci

This commit is contained in:
Suchin Sapphasitthatha 2025-08-05 05:54:13 +00:00
parent 83bf892997
commit 768be704cf

View file

@ -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