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