nothing works, all is broken, dammit
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
FROM debian:buster
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y nginx openssl && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# for debug
|
||||
#RUN apt install -y procps vim
|
||||
RUN apt update && apt install -y \
|
||||
nginx openssl
|
||||
RUN rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# create ssl certificate
|
||||
RUN openssl req -newkey rsa:2048 -nodes -x509 \
|
||||
RUN openssl req -newkey rsa:2048 -nodes -x509 -days 365 \
|
||||
-keyout /etc/ssl/private/hulamy.42.fr.key -out /etc/ssl/certs/hulamy.42.fr.crt \
|
||||
-subj "/C=fr/ST=ile-de-france/L=paris/O=42/OU=inception/CN=hulamy.42.fr"
|
||||
|
||||
@@ -16,11 +13,9 @@ RUN openssl req -newkey rsa:2048 -nodes -x509 \
|
||||
COPY ./conf/nginx.conf /etc/nginx/
|
||||
COPY ./conf/inception_nginx.conf /etc/nginx/conf.d/
|
||||
|
||||
# for test
|
||||
COPY ./conf/index.html /data/www/
|
||||
COPY ./conf/https/index.html /data/wwws/
|
||||
|
||||
CMD [ "nginx", "-g", "daemon off;" ]
|
||||
ENTRYPOINT [ "nginx", "-g", "daemon off;" ]
|
||||
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user