ทดสอบแก้ไขคำสั่ง npm ci
This commit is contained in:
parent
83bf892997
commit
768be704cf
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue