From e3b95758a2e7cbb212347dd952299d2150b55926 Mon Sep 17 00:00:00 2001 From: liberty-rising Date: Fri, 5 Jan 2024 22:14:43 +0100 Subject: [PATCH] update frontend Dockerfile to use nginx configuration --- frontend/Dockerfile.prod | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/Dockerfile.prod b/frontend/Dockerfile.prod index 4fd9bcb..f87c5f0 100644 --- a/frontend/Dockerfile.prod +++ b/frontend/Dockerfile.prod @@ -17,6 +17,9 @@ RUN npm run build # Stage 2: Serve the app with Nginx FROM nginx:stable-alpine3.17 +# Copy the custom Nginx configuration +COPY nginx.prod.conf /etc/nginx/conf.d/default.conf + # Copy the build output to replace the default nginx contents. COPY --from=build /app/dist /usr/share/nginx/html