Compare commits

..

1 Commits

Author SHA1 Message Date
0cc81d6430 Fix copy chown
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 6m34s
2025-06-10 15:05:12 +02:00

View File

@@ -11,7 +11,7 @@ RUN chown node:node ./
USER node
# Copy package files first
COPY package.json package-lock.json* .
COPY --chown=node:node package.json package-lock.json* .
# Install app dependencies
ENV NODE_ENV=production
@@ -20,7 +20,7 @@ RUN npm ci --only=production --ignore-scripts && \
npm cache clean --force
# Copy the builded files
COPY ./dist/* .
COPY --chown=node:node ./dist/* .
# Return to root user to remove build dependencies
USER root