Skip to content

Commit

Permalink
fix: allow using volume for nginx configuration (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 authored Oct 11, 2023
1 parent eb9fd25 commit 905361d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ 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 && \
touch /app/build/env-config.js && chmod a+w /app/build/env-config.js
touch /app/build/env-config.js && chmod a+w /app/build/env-config.js && \
mkdir /app/nginx && cp -R /etc/nginx/. /app/nginx

WORKDIR /usr/share/nginx/html

CMD [ \
"/bin/sh", \
"-c", \
"cp -R /app/build/. /usr/share/nginx/html && \
cp -R /app/nginx/. /etc/nginx && \
sh /app/init/env.sh env-config.js && \
sh /app/init/inject-base-href.sh && \
export DISABLE_IPV6=\"$([[ \"$ENABLE_IPV6\" = \"true\" ]] && echo \"false\" || echo \"true\")\" && \
Expand Down

0 comments on commit 905361d

Please sign in to comment.