You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
467 B
16 lines
467 B
2 years ago
|
FROM alpine:3.15
|
||
|
|
||
|
RUN apk update && apk upgrade && apk add --no-cache \
|
||
|
nginx \
|
||
|
openssl
|
||
|
|
||
|
RUN mkdir /etc/nginx/ssl
|
||
|
RUN openssl req -newkey rsa:4096 -x509 -sha256 -days 365 -nodes \
|
||
|
-out /etc/nginx/ssl/inception.pem -keyout /etc/nginx/ssl/inception.key \
|
||
|
-subj "/C=FR/ST=Nice/L=Nice/O=42/OU=student/CN=inception_narnaud/"
|
||
|
|
||
|
RUN mkdir -p /run/nginx
|
||
|
COPY nginx.conf /etc/nginx/http.d/default.conf
|
||
|
|
||
|
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|