2024-10-21 09:58:34 +02:00
|
|
|
# Use the official Nginx image from Docker Hub
|
2024-10-17 11:41:36 +02:00
|
|
|
FROM nginx:alpine3.20
|
|
|
|
|
2024-10-21 09:58:34 +02:00
|
|
|
# Copy your application files to the appropriate directory if needed
|
2024-10-17 11:41:36 +02:00
|
|
|
COPY dist /usr/share/nginx/html
|
2024-10-21 09:58:34 +02:00
|
|
|
|
|
|
|
# Copy custom Nginx configuration file to the container
|
2024-10-21 10:18:32 +02:00
|
|
|
COPY nginx-extra.conf /etc/nginx/conf.d/nginx-extra.conf
|
2024-10-21 09:58:34 +02:00
|
|
|
|
|
|
|
# Expose the port that the application is running on
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
# Start Nginx when the container launches
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|