FROM python WORKDIR /code RUN mkdir -p code/hub && chmod 777 code RUN chmod 777 code/hub COPY ./requirements.txt /code/requirements.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt COPY . . CMD ["gunicorn", "-w", "1", "main:app"]