Hoang Kha
Fix huggingface cache to /data for permission issues
6c510a2
raw
history blame contribute delete
324 Bytes
FROM python:3.10-slim
RUN apt-get update && apt-get install -y git && apt-get clean
WORKDIR /app
COPY . /app
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 7860
ENV HF_HUB_DISABLE_CACHE=1
ENV TRANSFORMERS_CACHE=/dev/null
ENV HF_HOME=/dev/null
ENV HF_HUB_DISABLE_SYMLINKS_WARNING=1
CMD ["python", "main.py"]