แก้เป็น npm install

This commit is contained in:
Suchin Sapphasitthatha 2025-08-05 06:15:52 +00:00
parent 4a60385007
commit 81c7e00fb4

View file

@ -6,7 +6,8 @@ WORKDIR /app
# Install app dependencies # Install app dependencies
COPY package*.json ./ COPY package*.json ./
RUN npm ci #RUN npm ci
RUN npm install
# Copy source files and build the app # Copy source files and build the app
COPY . . COPY . .
@ -24,7 +25,8 @@ 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
RUN npm install
USER node USER node
# Define the entrypoint and default command # Define the entrypoint and default command