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;"