2020-05-29 18:56:20 +02:00
|
|
|
FROM python:3.8-slim
|
2015-01-22 11:04:17 +01:00
|
|
|
|
|
|
|
MAINTAINER Joachim Lusiardi
|
|
|
|
|
2015-01-26 20:25:58 +01:00
|
|
|
RUN apt-get update; \
|
2020-05-29 18:56:20 +02:00
|
|
|
apt-get install -y nginx; \
|
|
|
|
pip3 install docker-py
|
2015-01-22 11:04:17 +01:00
|
|
|
|
2016-03-25 17:51:56 +01:00
|
|
|
RUN mkdir /default
|
|
|
|
ADD index.html /default/index.html
|
|
|
|
RUN chmod -R 777 /default
|
2015-01-22 11:04:17 +01:00
|
|
|
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
|
|
|
|
|