# Gunakan image Python versi 3.9 FROM python:3.9-slim # Buat working directory WORKDIR /app # Copy requirements dan install COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Salin semua file ke dalam container COPY . . # Jalankan Uvicorn CMD ["uvicorn", "index:app", "--host", "0.0.0.0", "--port", "8000"]