From 0112b35eeeefc60d86afdd748bb57d382ebe6302 Mon Sep 17 00:00:00 2001 From: jafreli Date: Sat, 31 Jan 2026 01:42:18 +0100 Subject: [PATCH] test --- frontend/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 97a87aa..9b39bcc 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -15,6 +15,9 @@ COPY . . # The output will be in the /app/dist/ directory RUN npm run build +# Debugging: List the contents of the build output directory +RUN ls -laR /app/dist/frontend + # Stage 2: Serve the application with Nginx FROM nginx:alpine @@ -24,6 +27,9 @@ RUN rm /etc/nginx/conf.d/default.conf # Copy the custom Nginx configuration from the local machine COPY nginx.conf /etc/nginx/conf.d/default.conf +# Remove default Nginx welcome page +RUN rm -rf /usr/share/nginx/html/* + # Copy the built application from the builder stage to Nginx's web root directory # I am assuming the project name is 'dashboard'. If not, you may need to change the path 'dist/dashboard/browser'. COPY --from=builder /app/dist/frontend/ /usr/share/nginx/html