Skip to content

Commit 3a4c35d

Browse files
committed
ci: docker permissions
1 parent a23afd2 commit 3a4c35d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,10 @@ COPY --from=builder --chown=default:root /app/apps/${PROJECT}/public ./apps/${PR
237237
COPY --from=builder --chown=default:root /app/next.base.config.mjs .
238238
RUN cp -r /app/apps/${PROJECT}/.next/ /app/.next_orig/
239239

240-
# OpenShift write access to Next cache folder
240+
# OpenShift write access to Next cache folder and runtime env-config.js
241241
USER root
242-
RUN chgrp -R 0 /app/apps/${PROJECT}/.next/server/pages && chmod g+w -R /app/apps/${PROJECT}/.next/server/pages
242+
RUN chgrp -R 0 /app/apps/${PROJECT}/.next/server/pages && chmod g+w -R /app/apps/${PROJECT}/.next/server/pages && \
243+
chgrp -R 0 /app/apps/${PROJECT}/public && chmod g+w -R /app/apps/${PROJECT}/public
243244
USER default
244245

245246
ENV NEXT_TELEMETRY_DISABLED 1

0 commit comments

Comments
 (0)