23 lines
622 B
Docker
23 lines
622 B
Docker
FROM debian:buster
|
|
|
|
#RUN wget https://wordpress.org/latest.tar.gz ; tar -xzvf latest.tar.gz
|
|
|
|
## for debug
|
|
#RUN apt install -y procps vim
|
|
#
|
|
## create ssl certificate
|
|
#RUN openssl req -newkey rsa:2048 -nodes -x509 \
|
|
# -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"
|
|
#
|
|
## import sites conf files
|
|
#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;" ]
|
|
|