FROM python:3.9 WORKDIR /app COPY ./app.py /app COPY ./requirements.txt /app RUN pip install -r requirements.txt RUN mkdir /app/.cache RUN chmod -R 777 /app/.cache ENV HF_HOME=/app/.cache EXPOSE 7860 CMD ["flask", "run" ,"--host", "0.0.0.0", "--port", "7860"]