แก้เป็น npm install
This commit is contained in:
parent
4a60385007
commit
81c7e00fb4
1 changed files with 4 additions and 2 deletions
|
|
@ -6,7 +6,8 @@ WORKDIR /app
|
|||
|
||||
# Install app dependencies
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
#RUN npm ci
|
||||
RUN npm install
|
||||
|
||||
# Copy source files and build the app
|
||||
COPY . .
|
||||
|
|
@ -24,7 +25,8 @@ COPY --from=build-stage /app/dist ./dist
|
|||
|
||||
# Install only production dependencies
|
||||
COPY package*.json ./
|
||||
RUN npm ci --production
|
||||
#RUN npm ci --production
|
||||
RUN npm install
|
||||
USER node
|
||||
|
||||
# Define the entrypoint and default command
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue