Fix nginx root location

Only index.html is accessed, no real subfolders
This commit is contained in:
Perflyst 2021-01-22 13:27:23 +01:00
parent 73ea88d4fc
commit 3c56df2d38
No known key found for this signature in database
GPG Key ID: B0D9C8E56E999F68
1 changed files with 2 additions and 0 deletions

View File

@ -5,4 +5,6 @@ RUN npm install
RUN npm run build
FROM nginx:alpine as app
# fix nginx root location
RUN sed -i 's|index index.html index.htm;|try_files $uri /index.html;|g' /etc/nginx/conf.d/default.conf
COPY --from=build /app/build/ /usr/share/nginx/html/