File size: 344 Bytes
d773e1b 2fa6289 d773e1b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
FROM python:3.10-slim
WORKDIR /code
COPY . .
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
# Ensure transformers and huggingface-hub cache is shared (optional, for faster cold starts)
ENV TRANSFORMERS_CACHE=/code/.cache/huggingface/transformers
ENV HF_HOME=/code/.cache/huggingface
EXPOSE 7860
CMD ["python", "app.py"] |