Spaces:
Running
Running
# Gunakan image Python resmi | |
FROM python:3.9-slim | |
# Set working directory | |
WORKDIR /app | |
# Salin requirements.txt dan install dependensi | |
COPY requirements.txt . | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Salin kode aplikasi | |
COPY app.py . | |
# Jalankan aplikasi dengan uvicorn | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |