oncu / Dockerfile
ciyidogan's picture
Update Dockerfile
f3618c4 verified
raw
history blame
520 Bytes
FROM python:3.10-slim
# Hugging Face Spaces özel dizinleri
RUN mkdir -p /app /model && chmod -R 777 /app /model
WORKDIR /app
# Sistem bağımlılıkları
RUN apt-get update && apt-get install -y git build-essential cmake
# Python bağımlılıkları (huggingface_hub eklendi!)
RUN pip install --no-cache-dir llama-cpp-python[server] fastapi uvicorn huggingface_hub
# Uygulama dosyasını kopyala
COPY app.py /app/app.py
# FastAPI sunucusunu başlat
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]