fixing build and nginx

This commit is contained in:
2026-04-25 20:35:52 -04:00
parent 1e0df31cd4
commit 451151628c
2 changed files with 12 additions and 0 deletions
+3
View File
@@ -38,6 +38,9 @@ LABEL stage="nginx-server"
# Copy the build output from the 'build' stage to Nginx's html directory # Copy the build output from the 'build' stage to Nginx's html directory
COPY --from=build /app/build /usr/share/nginx/html COPY --from=build /app/build /usr/share/nginx/html
# Replace default nginx config with one that handles SPA client-side routing
COPY nginx-docker.conf /etc/nginx/conf.d/default.conf
# Expose port 80 (Nginx default) # Expose port 80 (Nginx default)
EXPOSE 80 EXPOSE 80
+9
View File
@@ -0,0 +1,9 @@
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}