2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-10 07:11:00 +00:00

Add 502 error page

This commit is contained in:
Lev Vereshchagin 2021-12-15 12:01:02 +03:00
parent 6dc92c2d1a
commit dd36984156
2 changed files with 6 additions and 1 deletions

View File

@ -66,8 +66,14 @@ RUN yarn run production --app erpnext \
COPY --from=erpnext_node_modules /root/frappe-bench/apps/erpnext/node_modules /root/frappe-bench/apps/erpnext/node_modules
FROM base as error_pages
RUN git clone --depth 1 https://github.com/frappe/bench /root/bench
FROM nginx:1.21-alpine as frappe
COPY --from=error_pages /root/bench/bench/config/templates/502.html /usr/share/nginx/html
COPY --from=frappe_assets /root/frappe-bench/sites /usr/share/nginx/html
COPY nginx-template.conf /

View File

@ -69,7 +69,6 @@ server {
# error pages
error_page 502 /502.html;
location /502.html {
root /var/www/templates;
internal;
}