FROM ubuntu:20.04 WORKDIR /code 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 443 COPY . . 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"]