2021-08-21 19:08:08 +02:00
|
|
|
FROM nginx:alpine as server
|
2021-08-19 22:15:22 +02:00
|
|
|
|
2021-08-21 19:08:08 +02:00
|
|
|
## Remove default nginx website
|
|
|
|
RUN rm -rf /usr/share/nginx/html/*
|
2021-08-19 22:15:22 +02:00
|
|
|
|
2021-08-21 19:08:08 +02:00
|
|
|
# copy nginx configuration file
|
|
|
|
COPY nginx.conf /etc/nginx/
|
2021-08-19 22:15:22 +02:00
|
|
|
|
2021-08-21 19:08:08 +02:00
|
|
|
EXPOSE 80
|
2021-08-19 22:15:22 +02:00
|
|
|
|
2021-08-21 19:08:08 +02:00
|
|
|
CMD [ "nginx", "-g", "daemon off;" ]
|