Add 502 page for ingress

This commit is contained in:
schmelczerandras 2020-07-20 15:53:10 +02:00
parent ad42658ce5
commit aa1eaccf5f
3 changed files with 84 additions and 34 deletions

View file

@ -1,3 +1,16 @@
FROM error-pages as build-error-pages
RUN python build.py 502
FROM nginx:alpine
COPY app.conf /etc/nginx/conf.d/
WORKDIR /usr/share/nginx/html
RUN rm -rf *
COPY --from=build-error-pages /home/python/built errors
RUN find . -type f | xargs gzip -k9 &&\
chmod -R 555 .
COPY nginx-config /etc/nginx/