42_Inception/srcs/nginx/Dockerfile

14 lines
384 B
Docker
Raw Normal View History

2023-10-05 09:33:42 -04:00
FROM alpine:3.17
2023-10-04 10:01:11 -04:00
RUN apk update
2023-10-05 09:33:42 -04:00
RUN apk add nginx openssl
2023-10-04 10:01:11 -04:00
2023-10-05 09:33:42 -04:00
RUN openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
-keyout /etc/ssl/private/nginx-selfsigned.key \
-out /etc/ssl/certs/nginx-selfsigned.crt \
-subj "/C=FR/ST=Nouvelle Aquitaine/L=Angouleme/O=42 Angouleme/CN=cchauvet.42.fr"
2023-10-04 10:01:11 -04:00
2023-10-05 09:45:59 -04:00
COPY nginx.conf /etc/nginx/http.d/default.conf
2023-10-04 10:01:11 -04:00
2023-10-05 09:45:59 -04:00
ENTRYPOINT ["nginx", "-g", "daemon off;"]