mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 13:38:13 -08:00
feat: add rootless Docker image
This commit is contained in:
parent
53e0d7bdab
commit
d39f2baed3
2 changed files with 23 additions and 0 deletions
11
Dockerfile-rootless
Normal file
11
Dockerfile-rootless
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
FROM ghcr.io/nginxinc/nginx-unprivileged:stable-alpine-slim
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENV BASE_URL=""
|
||||
|
||||
COPY build/web /usr/share/nginx/html
|
||||
|
||||
RUN echo '{"baseUrl": "${BASE_URL}"}' > /usr/share/nginx/html/assets/config/config.json
|
||||
|
||||
CMD /bin/sh -c 'sed -i s/80/8080/g /etc/nginx/conf.d/default.conf && 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