From 91b25d18ae102c7de3448871b78577329dc73075 Mon Sep 17 00:00:00 2001 From: baloola Date: Mon, 7 Aug 2023 18:09:18 +0200 Subject: [PATCH] edit nginx history mode --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4694d6f..50a19e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,8 @@ FROM nginx:1-alpine COPY --from=build-step /app/dist /usr/share/nginx/html # change default port to 8080 -RUN sed -i 's/\s*listen\s*80;/ listen 8080;/' /etc/nginx/conf.d/default.conf +RUN sed -i 's/\s*listen\s*80;/ listen 8080;/' /etc/nginx/conf.d/default.conf && \ + sed -i 's/\s*location \/ {/ location \/ {\n try_files $uri $uri\/ \/index.html;/' /etc/nginx/conf.d/default.conf EXPOSE 8080