FROM python:3.11 WORKDIR /api COPY ./ /api/ RUN pip install --upgrade pip RUN pip install -r requirements.txt RUN poetry install --no-root RUN mkdir /api/cache RUN chmod a+rwx /api/cache EXPOSE 7860 CMD ["python", "main.py"]