faace / Dockerfile
alaaashari's picture
Update Dockerfile
542d4b0 verified
raw
history blame contribute delete
617 Bytes
# استخدم صورة أساسية مناسبة
FROM python:3.10-slim
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/
# تثبيت المتطلبات
RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu \
&& pip install onnxruntime huggingface_hub fastapi uvicorn
# إنشاء مجلد العمل
WORKDIR /app
# تنزيل النموذج من Hugging Face
RUN git clone https://huggingface.co/immich-app/antelopev2 /app/model
# نسخ كود التطبيق
COPY app.py /app/app.py
# تشغيل التطبيق
CMD ["python", "/app/app.py"]