Fix nginx root location
Only index.html is accessed, no real subfolders
This commit is contained in:
parent
73ea88d4fc
commit
3c56df2d38
|
@ -5,4 +5,6 @@ RUN npm install
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM nginx:alpine as app
|
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/
|
COPY --from=build /app/build/ /usr/share/nginx/html/
|
||||||
|
|
Loading…
Reference in New Issue