mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
11 lines
347 B
Text
11 lines
347 B
Text
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|\${BASE_URL}|${BASE_URL}|g" /usr/share/nginx/html/assets/config/config.json && nginx -g "daemon off;"'
|