fix dockerfile
Some checks failed
CI / build (push) Successful in 12s
CI / lint (push) Successful in 8s
CI / build-and-push-docker (push) Failing after 11s

This commit is contained in:
2025-08-29 14:27:38 +02:00
parent 8ffb850322
commit ae4b2b6179
2 changed files with 30 additions and 24 deletions

View File

@@ -1,9 +1,17 @@
FROM nginx:latest
# Use the official Nginx image as the base
FROM nginx:alpine
WORKDIR /app
# Remove default nginx website
RUN rm -rf /usr/share/nginx/html/*
COPY ./build/* /usr/share/nginx/html/
# Copy build output from dist folder to nginx html directory
COPY dist/ /usr/share/nginx/html/
# Copy custom nginx config
COPY nginx.conf /etc/nginx/nginx.conf
# Expose port 80
EXPOSE 80
# Start nginx
CMD ["nginx", "-g", "daemon off;"]