From 89dc77b1df60f002d369a4834d9c28a5c52efa3b Mon Sep 17 00:00:00 2001 From: hltav Date: Mon, 13 Jul 2026 09:40:08 -0300 Subject: [PATCH] fix(docker): configure nginx SPA routing for frontend and admin --- docker/node.Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docker/node.Dockerfile b/docker/node.Dockerfile index 459d68c..9733625 100644 --- a/docker/node.Dockerfile +++ b/docker/node.Dockerfile @@ -41,6 +41,11 @@ RUN npm run build FROM nginx:1.27-alpine AS frontend-runtime COPY --from=frontend /app/frontend/dist /usr/share/nginx/html +COPY frontend/nginx.conf /etc/nginx/conf.d/default.conf + +EXPOSE 80 + +CMD ["nginx", "-g", "daemon off;"] #################################################### @@ -63,3 +68,9 @@ RUN npm run build FROM nginx:1.27-alpine AS front-admin-runtime COPY --from=front-admin /app/front_admin/dist /usr/share/nginx/html +COPY front_admin/nginx.conf /etc/nginx/conf.d/default.conf + +EXPOSE 80 + +CMD ["nginx", "-g", "daemon off;"] +