Compare commits
1 Commits
build_2025
...
build_2025
| Author | SHA1 | Date | |
|---|---|---|---|
|
0cc81d6430
|
@@ -11,7 +11,7 @@ RUN chown node:node ./
|
|||||||
USER node
|
USER node
|
||||||
|
|
||||||
# Copy package files first
|
# Copy package files first
|
||||||
COPY package.json package-lock.json* .
|
COPY --chown=node:node package.json package-lock.json* .
|
||||||
|
|
||||||
# Install app dependencies
|
# Install app dependencies
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
@@ -20,7 +20,7 @@ RUN npm ci --only=production --ignore-scripts && \
|
|||||||
npm cache clean --force
|
npm cache clean --force
|
||||||
|
|
||||||
# Copy the builded files
|
# Copy the builded files
|
||||||
COPY ./dist/* .
|
COPY --chown=node:node ./dist/* .
|
||||||
|
|
||||||
# Return to root user to remove build dependencies
|
# Return to root user to remove build dependencies
|
||||||
USER root
|
USER root
|
||||||
|
|||||||
Reference in New Issue
Block a user