From 576ce6401d8e8afb52cafc3bca4f8dbd39a33681 Mon Sep 17 00:00:00 2001 From: Hunor Csomortáni Date: Mar 09 2018 01:20:38 +0000 Subject: Switch to python3-gunicorn and Fedora 27 [a44a16f] switched to Python 3 on Fedora. This made gunicorn not finding waiverdb.wsgi . Switching to python3-gunicorn solves this. Following futureproofing from [42754a4], change the base image to be fedora:27 . Signed-off-by: Hunor Csomortáni --- diff --git a/Dockerfile b/Dockerfile index 05d6ba1..8624e76 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM fedora:26 +FROM fedora:27 LABEL \ name="WaiverDB application" \ vendor="WaiverDB developers" \ @@ -9,12 +9,15 @@ ARG waiverdb_rpm ARG waiverdb_common_rpm COPY $waiverdb_rpm /tmp COPY $waiverdb_common_rpm /tmp + RUN dnf -y install \ - python-gunicorn \ - python-psycopg2 \ + python3-gunicorn \ /tmp/$(basename $waiverdb_rpm) \ /tmp/$(basename $waiverdb_common_rpm) \ - && dnf -y clean all + && dnf -y clean all \ + && rm -f /tmp/* + USER 1001 EXPOSE 8080 -ENTRYPOINT gunicorn --bind 0.0.0.0:8080 --access-logfile=- waiverdb.wsgi:app + +ENTRYPOINT python3-gunicorn --bind 0.0.0.0:8080 --access-logfile=- waiverdb.wsgi:app