From 1cbfc574e742b6467e8cab8c10e85b0c8e164cb5 Mon Sep 17 00:00:00 2001 From: Mirko Mollik Date: Sun, 21 Apr 2024 18:14:53 +0200 Subject: [PATCH] fix: docker image for angular Signed-off-by: Mirko Mollik --- docker/browser.Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docker/browser.Dockerfile b/docker/browser.Dockerfile index b90e7e49..dc8d0ea0 100644 --- a/docker/browser.Dockerfile +++ b/docker/browser.Dockerfile @@ -27,10 +27,8 @@ RUN mkdir -p /etc/nginx && \ echo ' root /usr/share/nginx/html;' >> /etc/nginx/nginx.conf && \ echo ' index index.html;' >> /etc/nginx/nginx.conf && \ echo ' location / {' >> /etc/nginx/nginx.conf && \ - echo ' try_files $uri $uri/ /index.html;' >> /etc/nginx/nginx.conf && \ + echo ' try_files $uri $uri/ /index.html =404;' >> /etc/nginx/nginx.conf && \ echo ' }' >> /etc/nginx/nginx.conf && \ echo ' }' >> /etc/nginx/nginx.conf && \ echo '}' >> /etc/nginx/nginx.conf COPY --from=build /usr/src/app/apps/${PROJECT}/dist/${SUB_PROJECT}/browser . -# remove all map files since we do not want them in production -# RUN rm -f *.map