Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +15 -0
Dockerfile
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
+
|
| 3 |
+
# Çalışma dizinini ayarla
|
| 4 |
+
WORKDIR /app
|
| 5 |
+
|
| 6 |
+
# Gerekli dosyaları kopyala
|
| 7 |
+
COPY requirements.txt requirements.txt
|
| 8 |
+
COPY app.py app.py
|
| 9 |
+
COPY face_shape_model.h5 face_shape_model.h5
|
| 10 |
+
|
| 11 |
+
# Bağımlılıkları yükle
|
| 12 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 13 |
+
|
| 14 |
+
# Uvicorn ile FastAPI başlat
|
| 15 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|