fix: use COPY --chown instead of recursive chown in Dockerfile
Release / docker (push) Successful in 55s
Release / release (push) Successful in 4s
Lint & Test / test (push) Has been cancelled
Lint & Test / lint-and-check (push) Has started running

Avoids slow chown -R over node_modules (thousands of files).
This commit is contained in:
2026-04-10 20:15:24 +03:00
parent 0ebf6bd652
commit 402a0b34c1
+5 -5
View File
@@ -19,12 +19,12 @@ WORKDIR /app
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
COPY --from=build /app/build ./build
COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/package.json ./
COPY --from=build /app/prisma ./prisma
COPY --from=build --chown=appuser:appgroup /app/build ./build
COPY --from=build --chown=appuser:appgroup /app/node_modules ./node_modules
COPY --from=build --chown=appuser:appgroup /app/package.json ./
COPY --from=build --chown=appuser:appgroup /app/prisma ./prisma
RUN mkdir -p /app/data && chown -R appuser:appgroup /app
RUN mkdir -p /app/data && chown appuser:appgroup /app /app/data
USER appuser