Added proper caching rules to nginx config included in docker image

This commit is contained in:
Alejandro Celaya
2020-10-31 13:36:53 +01:00
parent 498594c31b
commit de906bf370
2 changed files with 17 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ ENV VERSION ${VERSION}
RUN cd /shlink-web-client && \
npm install && npm run build -- ${VERSION} --no-dist
FROM nginx:1.17.10-alpine
FROM nginx:1.19.3-alpine
LABEL maintainer="Alejandro Celaya <alejandro@alejandrocelaya.com>"
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