Skip to content

Commit

Permalink
fix: allow starting Docker with non-root user (#964)
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 authored Nov 28, 2023
1 parent 3c959d6 commit 6c345a9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ COPY ./packages/web/scripts/env.sh /app/init/
COPY ./packages/web/scripts/inject-base-href.sh /app/init/

RUN chmod +x /app/init/env.sh /app/init/inject-base-href.sh && \
chmod ugo+w /etc/nginx/nginx.conf /app/build/index.html && \
chmod a+w /etc/nginx/nginx.conf /app/build/index.html && \
touch /app/build/env-config.js && chmod a+w /app/build/env-config.js && \
mkdir /app/nginx && cp -R /etc/nginx/. /app/nginx
mkdir /app/nginx && cp -R /etc/nginx/. /app/nginx && \
rm -rf /etc/nginx /usr/share/nginx/html && \
mkdir -p /etc/nginx /usr/share/nginx/html && \
chmod -R a+w /usr/share/nginx/html /etc/nginx

WORKDIR /usr/share/nginx/html

Expand Down

0 comments on commit 6c345a9

Please sign in to comment.