mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 13:38:13 -08:00
fix: Rootless docker container
This commit is contained in:
parent
5250b002c5
commit
a8620dc93f
1 changed files with 7 additions and 2 deletions
|
|
@ -4,8 +4,13 @@ EXPOSE 8080
|
|||
|
||||
ENV BASE_URL=""
|
||||
|
||||
USER root
|
||||
COPY build/web /usr/share/nginx/html
|
||||
RUN chown -R nginx:nginx /usr/share/nginx/html
|
||||
|
||||
RUN echo '{"baseUrl": "${BASE_URL}"}' > /usr/share/nginx/html/assets/config/config.json
|
||||
USER nginx
|
||||
RUN mkdir -p /usr/share/nginx/html/assets/config && \
|
||||
echo '{"baseUrl": "${BASE_URL}"}' > /usr/share/nginx/html/assets/config/config.json
|
||||
|
||||
CMD /bin/sh -c 'sed -i "s|\${BASE_URL}|${BASE_URL}|g" /usr/share/nginx/html/assets/config/config.json && nginx -g "daemon off;"'
|
||||
USER root
|
||||
CMD /bin/sh -c 'sed -i "s|\${BASE_URL}|${BASE_URL}|g" /usr/share/nginx/html/assets/config/config.json && nginx -g "daemon off;"'
|
||||
Loading…
Add table
Add a link
Reference in a new issue