You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
544 B
Docker

FROM debian:sid
# Set the env variables to non-interactive
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_PRIORITY critical
ENV DEBCONF_NOWARNINGS yes
RUN apt-get update && apt-get -y install nginx
RUN mkdir -p /var/lib/nginx
RUN chown -R www-data:www-data /var/lib/nginx
ADD ./acme-challenge.conf /etc/nginx/snippets/acme-challenge.conf
ADD ./nginx.conf /etc/nginx/nginx.conf
RUN mkdir /etc/nginx/streams-enabled && chown -R www-data:www-data /etc/nginx/streams-enabled
CMD [ "/usr/sbin/nginx", "-g", "daemon off; master_process on;" ]