Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🐛 Fix permission issues of corepack cache

Luke Vellaf35b6930e26a
diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile
index 7d777b9d5..8b7680c53 100644
--- a/apps/web/Dockerfile
+++ b/apps/web/Dockerfile
@@ -65,7 +65,7 @@ RUN addgroup --system nodejs \
&& adduser --system --ingroup nodejs --home /app --shell /bin/bash nextjs
# Copy Corepack cache from installer stage to avoid runtime download
-COPY --from=installer /root/.cache/node/corepack/ /app/.cache/node/corepack/
+COPY --chown=nextjs:nodejs --from=installer /root/.cache/node/corepack/ /app/.cache/node/corepack/
# Copy app files
COPY --from=builder /app/scripts/docker-start.sh ./