From 50461cca4c1d4f4a1f036f60c20573daf76e84a0 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Wed, 30 Apr 2025 13:55:30 +1000 Subject: [PATCH] installed sqllite3 and added an apt-update before the upgrade. Also EXPOSE/opened port 8080 (non-priv) --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 21159c7..7213381 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,13 +3,13 @@ FROM python:latest # this forces /code to be owned by the user specified in the docker-compose file, we could ignore issues without this (but I am writing log files to the current dir with gunicorn as a non-priv'd user) ARG USERID ARG GROUPID -RUN apt-get dist-upgrade -y +RUN apt-get update && apt-get install sqlite3 && apt-get dist-upgrade -y WORKDIR /code COPY requirements.txt . RUN pip3 install -r requirements.txt COPY . . RUN chown -R ${USERID}:${GROUPID} /code -EXPOSE 80 -CMD gunicorn --bind=0.0.0.0:80 --workers=2 --threads=2 main:app --env ENV="production" --error-logfile /code/gunicorn.error.log --access-logfile /code/gunicorn.log --capture-output +EXPOSE 8080 +CMD gunicorn --bind=0.0.0.0:8080 --workers=2 --threads=2 main:app --error-logfile /code/gunicorn.error.log --access-logfile /code/gunicorn.log --capture-output # comment out the gunicorn line & uncomment the sleep so you can run gunicorn by hand in case it does not start on init (via docker exec...) #CMD sleep 99999