docker_nginx_auto_proxy/Dockerfile

22 lines
388 B
Docker

FROM python:3.8-slim
MAINTAINER Joachim Lusiardi
RUN apt-get update; \
apt-get install -y nginx; \
pip3 install docker-py
RUN mkdir /default
ADD index.html /default/index.html
RUN chmod -R 777 /default
ADD nginx.conf /etc/nginx.conf
ADD start.sh /start.sh
RUN chmod +x /start.sh
ADD nginx_proxy.py /nginx_proxy.py
RUN chmod +x /nginx_proxy.py
EXPOSE 80
ENTRYPOINT /start.sh