Skip to content

Commit

Permalink
Fix broken Dockerfile with no sudo by using USER command
Browse files Browse the repository at this point in the history
  • Loading branch information
yutotakano committed Nov 25, 2024
1 parent 04ff5c1 commit aa48cef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ COPY compiled.css /var/www/html/compiled.css
RUN rm /var/www/html/index.php
RUN rm /var/www/html/test.html

RUN sudo mkdir -p /etc/aoc
RUN sudo chown -R www-data:www-data /etc/aoc
USER root

RUN mkdir -p /etc/aoc
RUN chown -R nobody:nobody /etc/aoc

USER nobody

EXPOSE 8080

0 comments on commit aa48cef

Please sign in to comment.