feat: add custom nginx configuration

This commit is contained in:
Stefan Imhoff
2024-04-04 11:19:32 +02:00
parent 8ff3fdd549
commit befb9bffc9
2 changed files with 39 additions and 0 deletions

View File

@@ -16,6 +16,12 @@ RUN pnpm run build
# Stage 2: Serve the application using Nginx
FROM nginx:stable-alpine
# Remove the default nginx.conf
RUN rm /etc/nginx/conf.d/default.conf
# Copy custom nginx configuration
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
# Copy build artifacts from the builder stage
COPY --from=builder /app/dist /usr/share/nginx/html