switch to updated base image

This commit is contained in:
Joachim Lusiardi 2020-05-29 18:56:20 +02:00
parent 8d06ad7f0b
commit dab8e5a17c
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,10 @@
FROM debian8_python3 FROM python:3.8-slim
MAINTAINER Joachim Lusiardi MAINTAINER Joachim Lusiardi
RUN apt-get update; \ RUN apt-get update; \
apt-get install -y nginx; apt-get install -y nginx; \
pip3 install docker-py
RUN mkdir /default RUN mkdir /default
ADD index.html /default/index.html ADD index.html /default/index.html
@ -14,7 +15,6 @@ RUN chmod +x /start.sh
ADD nginx_proxy.py /nginx_proxy.py ADD nginx_proxy.py /nginx_proxy.py
RUN chmod +x /nginx_proxy.py RUN chmod +x /nginx_proxy.py
RUN pip3 install docker-py
EXPOSE 80 EXPOSE 80
ENTRYPOINT /start.sh ENTRYPOINT /start.sh

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3.4 #!/usr/bin/env python3
from docker import Client from docker import Client
from docker.errors import APIError from docker.errors import APIError