Remove chown copy from package.json runtime copy

This commit is contained in:
Maciej Pędzich 2024-07-22 09:19:49 +02:00
parent c7c9116ee5
commit 2199b3b998
Signed by: maciejpedzich
GPG Key ID: CE4A303D84882F0D

View File

@ -8,7 +8,7 @@ FROM node:lts-alpine AS runtime
WORKDIR /app WORKDIR /app
ENV NODE_ENV production ENV NODE_ENV production
USER node USER node
COPY --chown=node:node package*.json ./ COPY package*.json ./
RUN npm ci --production RUN npm ci --production
COPY --from=build --chown=node:node /app/dist ./dist COPY --from=build --chown=node:node /app/dist ./dist
EXPOSE 3000 EXPOSE 3000