Skip to content

Commit f35b693

Browse files
committed
🐛 Fix permission issues of corepack cache
Fix #2178
1 parent 277f8e3 commit f35b693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ RUN addgroup --system nodejs \
6565
&& adduser --system --ingroup nodejs --home /app --shell /bin/bash nextjs
6666

6767
# Copy Corepack cache from installer stage to avoid runtime download
68-
COPY --from=installer /root/.cache/node/corepack/ /app/.cache/node/corepack/
68+
COPY --chown=nextjs:nodejs --from=installer /root/.cache/node/corepack/ /app/.cache/node/corepack/
6969

7070
# Copy app files
7171
COPY --from=builder /app/scripts/docker-start.sh ./

0 commit comments

Comments
 (0)