FROM python:3.10 | |
WORKDIR /app | |
COPY requirements.txt . | |
RUN pip install -r requirements.txt | |
COPY . . | |
# Set Hugging Face cache directory to a writable location | |
ENV TRANSFORMERS_CACHE=/tmp/hf_cache | |
ENV HF_HOME=/tmp/hf_cache | |
CMD ["python", "app.py"] | |