From 76ef4637753cbb1a49e1c2edcd5263290dad7956 Mon Sep 17 00:00:00 2001 From: remche Date: Wed, 23 Sep 2020 13:19:36 +0200 Subject: [PATCH] bump to python3 and sigal 2 --- Dockerfile | 13 ++++--------- run.sh | 2 +- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 344b2ad..a5e81dd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,12 @@ FROM nginx:stable -VOLUME /pictures - WORKDIR /opt RUN apt-get update && apt-get install -y \ - python-dev \ - python-pip \ - zlib1g-dev \ - libjpeg-dev \ - libfreetype6-dev \ - && rm -rf /var/lib/apt/lists/* -RUN pip install sigal + python3-pip \ + && rm -rf /var/lib/apt/lists/* + +RUN pip3 install sigal COPY run.sh sigal.conf.py auth.conf auth.htpasswd ./ diff --git a/run.sh b/run.sh index c1d44e0..49c4612 100755 --- a/run.sh +++ b/run.sh @@ -7,5 +7,5 @@ if [[ $HTPASSWD ]] fi sigal build -nginx -g "daemon off;" +exec nginx -g "daemon off;"