FROM python:3.8

ADD templates/fortune.html /apidaora/templates/

WORKDIR /apidaora

ADD requirements.txt /apidaora/

RUN pip3 install cython==0.29.13

RUN pip3 install -r /apidaora/requirements.txt

ADD apidaora_core_conf.py coreapp.py /apidaora/

CMD gunicorn coreapp:app -k uvicorn.workers.UvicornWorker -c apidaora_core_conf.py
