42_Inception/srcs/requirements/nginx/Dockerfile

16 lines
460 B
Text
Raw Normal View History

2025-01-25 11:41:12 +01:00
FROM alpine:3.21.2
LABEL org.opencontainers.image.authors="alier@student.42mulhouse.fr"
RUN apk add nginx openssl curl && rm /etc/nginx/http.d/default.conf
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
2025-01-25 16:40:18 +01:00
COPY ./conf/example.com.conf /etc/nginx/http.d/example.com.conf
2025-01-25 11:41:12 +01:00
COPY ./tools/setup_nginx.sh /setup_nginx.sh
HEALTHCHECK --start-period=5s \
CMD curl "https://$DOMAIN_NAME" --insecure --fail || exit 1
EXPOSE 443
ENTRYPOINT ["sh", "setup_nginx.sh"]