Skip to content

Commit

Permalink
fix: permission denied when running ui image
Browse files Browse the repository at this point in the history
It has a permission denied when running UI image to create tempfs
directory, copy nginx config files to tempfs directory and touch
pid file and change pid file owner.

Ref: 6430

Signed-off-by: James Lu <[email protected]>
  • Loading branch information
mantissahz authored and David Ko committed Aug 23, 2023
1 parent b4ff1c9 commit 1b2b2db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ EXPOSE 8000
ENV LONGHORN_MANAGER_IP http://localhost:9500
ENV LONGHORN_UI_PORT 8000

RUN mkdir -p /var/config/ && touch /var/run/nginx.pid && chown -R 499 /var/config /var/run/nginx.pid

# Use the uid of the default user (nginx) from the installed nginx package
USER 499

Expand Down

0 comments on commit 1b2b2db

Please sign in to comment.