Added nginx congif which ensures client-side paths are served as the index.html

This commit is contained in:
Alejandro Celaya
2019-09-22 11:55:21 +02:00
parent 2c93e9a587
commit 1b5f7b0d76
3 changed files with 21 additions and 2 deletions

View File

@@ -4,5 +4,6 @@ RUN cd /shlink-web-client && npm install && npm run build
FROM nginx:1.17.3-alpine
LABEL maintainer="Alejandro Celaya <alejandro@alejandrocelaya.com>"
RUN rm -r /usr/share/nginx/html
RUN rm -r /usr/share/nginx/html && rm /etc/nginx/conf.d/default.conf
COPY config/docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=node /shlink-web-client/build /usr/share/nginx/html