FROM ${REGISTRY_PATH}base/python:3.9-buster

WORKDIR /app 
COPY requirements.txt /app
RUN pip3 install -r requirements.txt --no-cache-dir
RUN apt update -y;apt-get install wkhtmltopdf -y
COPY . /app
CMD gunicorn --access-logfile applog/access.log --error-logfile applog/error.log --workers=9 --threads=1 --preload --bind 0.0.0.0:8000 --timeout 600 mysgi_api.wsgi:application 
