1 Commits

Author SHA1 Message Date
b479bdefa4 test
All checks were successful
Build and Push Docker Images / build-and-push-backend (push) Successful in 7s
Build and Push Docker Images / build-and-push-frontend (push) Successful in 15s
2026-01-31 01:45:23 +01:00

View File

@@ -15,9 +15,6 @@ COPY . .
# The output will be in the /app/dist/ directory # The output will be in the /app/dist/ directory
RUN npm run build 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 # Stage 2: Serve the application with Nginx
FROM nginx:alpine FROM nginx:alpine
@@ -27,12 +24,9 @@ RUN rm /etc/nginx/conf.d/default.conf
# Copy the custom Nginx configuration from the local machine # Copy the custom Nginx configuration from the local machine
COPY nginx.conf /etc/nginx/conf.d/default.conf 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 # 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'. # 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 COPY --from=builder /app/dist/frontend/. /usr/share/nginx/html
# Expose port 80 for the web server # Expose port 80 for the web server
EXPOSE 80 EXPOSE 80