Skip to content

Commit

Permalink
932 docker compose suggestion to map opt/app/ui/.next/cache to cache #2
Browse files Browse the repository at this point in the history
… (#1103)

* fix: Fixed an issue where .next/cache directory creation would fail when using a custom user

* chore: Add chown after chmod added for PR 932
  • Loading branch information
jorenn92 authored May 27, 2024
1 parent fa9a30c commit d7d0368
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ RUN corepack install && \
# This is required for docker user directive to work
chmod 777 /opt && \
mkdir -m 777 /.cache && \
mkdir -pm 777 /opt/app/ui/.next/cache
mkdir -pm 777 /opt/app/ui/.next/cache && \
chown -R node:node /opt/app/ui/.next/cache

USER node

Expand Down

0 comments on commit d7d0368

Please sign in to comment.