diff --git a/Projects/kompose/docs/Dockerfile b/Projects/kompose/docs/Dockerfile index 12b66071..7d5223b1 100644 --- a/Projects/kompose/docs/Dockerfile +++ b/Projects/kompose/docs/Dockerfile @@ -25,7 +25,7 @@ FROM nginx:alpine COPY nginx.conf /etc/nginx/nginx.conf # Copy built static site -COPY --from=builder /app/.output/public /usr/share/nginx/html +COPY --from=builder /app/.output/public /usr/share/nginx/html/kompose # Add healthcheck # HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ diff --git a/Projects/kompose/docs/nginx.conf b/Projects/kompose/docs/nginx.conf index c3aa238a..979eb781 100644 --- a/Projects/kompose/docs/nginx.conf +++ b/Projects/kompose/docs/nginx.conf @@ -62,8 +62,7 @@ http { } # Handle SPA routing - location /kompose { - alias /usr/share/nginx/html; + location / { try_files $uri $uri/ /index.html; }