Web - Add docker image and baseUrl config support (#32)

This commit is contained in:
PartyDonut 2024-10-17 19:06:13 +02:00 committed by GitHub
parent 80a0fdbee4
commit bfcbf5402d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 144 additions and 138 deletions

11
Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM nginx:alpine
EXPOSE 80
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;"'