deepseek-7b / Dockerfile
arya-ai-model's picture
First commit
669c97b
raw
history blame contribute delete
417 Bytes
FROM python:3.10
# Set environment variables for Hugging Face cache
ENV HF_HOME=/app/huggingface
ENV TRANSFORMERS_CACHE=/app/huggingface
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Ensure cache directory exists and is writable
RUN mkdir -p /app/huggingface && chmod -R 777 /app/huggingface
COPY . .
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]