ciyidogan commited on
Commit
f8d9ecf
·
verified ·
1 Parent(s): 3e66fd0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Hugging Face Spaces özel dizinleri
4
+ RUN mkdir -p /app /model && chmod -R 777 /app /model
5
+ WORKDIR /app
6
+
7
+ # Sistem bağımlılıkları
8
+ RUN apt-get update && apt-get install -y git build-essential cmake
9
+
10
+ # Python bağımlılıkları
11
+ RUN pip install --no-cache-dir llama-cpp-python[server] fastapi uvicorn
12
+
13
+ # Model dosyasını manuel kopyalayacaksın (Hugging Face panelinden)
14
+ COPY app.py /app/app.py
15
+
16
+ # FastAPI sunucusunu başlat
17
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]