15 lines
525 B
Docker
15 lines
525 B
Docker
FROM debian:bullseye
|
|
RUN apt update -y
|
|
RUN apt upgrade -y
|
|
RUN apt install nginx -y
|
|
RUN apt install openssl -y
|
|
RUN mkdir -p /etc/nginx/ssl
|
|
RUN mkdir -p /var/run/nginx
|
|
RUN openssl req -x509 -nodes -out /etc/nginx/ssl/inception.crt -keyout /etc/nginx/ssl/inception.key -subj "/C=FR/ST=IDF/L=Paris/O=42/OU=42/CN=yantoine.42.fr/UID=yantoine"
|
|
COPY conf/nginx.conf /etc/nginx/nginx.conf
|
|
RUN chmod 755 /var/www/html
|
|
RUN chown -R www-data:www-data /var/www/html
|
|
COPY ./tools/run.sh /run.sh
|
|
RUN chmod +x /run.sh
|
|
ENTRYPOINT ["/run.sh"]
|