Guillaume "B.B." Van Hemmen
6e94306755
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit introduces the Nginx setup by using the official Nginx Alpine image and copying the custom Nginx configuration into the Docker container. It also includes CORS headers in the Nginx configuration to allow requests from any origin with specific headers and methods.
14 lines
408 B
Docker
14 lines
408 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.conf /etc/nginx/nginx.conf
|
|
|
|
# Expose the port that the application is running on
|
|
EXPOSE 80
|
|
|
|
# Start Nginx when the container launches
|
|
CMD ["nginx", "-g", "daemon off;"]
|