ทดสอบแก้ไขคำสั่ง 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
|
# Install app dependencies
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
RUN npm install
|
||||||
RUN npm ci
|
# RUN npm ci
|
||||||
|
|
||||||
# Copy source files and build the app
|
# Copy source files and build the app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
@ -17,7 +17,6 @@ RUN npm run build
|
||||||
FROM node:20.19.4-alpine
|
FROM node:20.19.4-alpine
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
USER node
|
|
||||||
|
|
||||||
# Create app directory
|
# Create app directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
@ -28,6 +27,7 @@ COPY --from=build-stage /app/dist ./dist
|
||||||
# Install only production dependencies
|
# Install only production dependencies
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm ci --production
|
RUN npm ci --production
|
||||||
|
USER node
|
||||||
|
|
||||||
# Define the entrypoint and default command
|
# Define the entrypoint and default command
|
||||||
# If you have a custom entrypoint script
|
# If you have a custom entrypoint script
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue