deepseek / Dockerfile
BolaNash's picture
Update Dockerfile
cf5ad93 verified
raw
history blame contribute delete
443 Bytes
FROM python:3.10-slim
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# إعداد كاش
ENV HF_HOME=/app/cache
# أنشئ المجلد وأعطه صلاحيات
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
COPY requirements.txt .
COPY app.py .
RUN pip install --upgrade pip && pip install -r requirements.txt
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]