diff --git a/Dockerfile b/Dockerfile index f9b3e28..ca0cbe8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM ubuntu:20.04 WORKDIR /code -RUN apt-get update && apt-get -y install python3-pip python3-psycopg2 libpq-dev +RUN apt-get update && apt-get -y install python3-pip python3-psycopg2 libpq-dev gunicorn COPY requirements.txt requirements.txt RUN pip3 install -r requirements.txt -EXPOSE 5000 +EXPOSE 443 COPY . . -CMD ["python3", "/code/main.py"] +CMD ["gunicorn", "--bind=0.0.0.0:443", "--workers=2","--threads=2", "--certfile", "/etc/letsencrypt/live/book.depaoli.id.au/fullchain.pem", "--keyfile", "/etc/letsencrypt/live/book.depaoli.id.au/privkey.pem","main:app"]