Add 502 page for ingress
This commit is contained in:
parent
ad42658ce5
commit
aa1eaccf5f
3 changed files with 84 additions and 34 deletions
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue