Commit bde5969a authored by Hines, Jesse's avatar Hines, Jesse
Browse files

Fix nginx image

Fix nginx image not passing subpaths to the single-page app index.html/js
parent 34715876
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -19,4 +19,5 @@ RUN npm run build-prod

FROM nginx:1.29.1
EXPOSE 80
COPY --from=build /app/dist /usr/share/nginx/html
COPY docker/default.conf.template /etc/nginx/templates/default.conf.template
COPY --from=build /app/dist /app
+9 −0
Original line number Diff line number Diff line
server {
    listen 80;
    root /app;
    index index.html;

    location / {
        try_files $uri $uri/ /index.html;
    }
}