Spaces:
Sleeping
Sleeping
File size: 329 Bytes
f0751fe |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
FROM python:3.9-slim
WORKDIR /app
# Copy requirement dan install dulu (biar cache Docker efisien)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy semua file lain (model, kode Python, dll)
COPY . .
# Jalankan Uvicorn langsung
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|