diff --git a/Dockerfile b/Dockerfile index e9318a6..6f4a3c9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/