Guillaume "B.B." Van Hemmen
7d017d7feb
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Introduce a refined NGINX configuration template with user, worker settings, and modular include directives. This improves clarity and allows easier integration of additional configuration files, while maintaining existing CORS settings.
14 lines
427 B
Docker
14 lines
427 B
Docker
# Use the official Nginx image from Docker Hub
|
|
FROM nginx:alpine3.20
|
|
|
|
# Copy your application files to the appropriate directory if needed
|
|
COPY dist /usr/share/nginx/html
|
|
|
|
# Copy custom Nginx configuration file to the container
|
|
COPY nginx-extra.conf /etc/nginx/conf.d/nginx-extra.conf
|
|
|
|
# Expose the port that the application is running on
|
|
EXPOSE 80
|
|
|
|
# Start Nginx when the container launches
|
|
CMD ["nginx", "-g", "daemon off;"]
|