# Gunakan image Python ringan FROM python:3.9-slim # Set working directory WORKDIR /app # Copy requirements dan install COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy semua file codingan COPY . . # Beri akses ke port 7860 (Port standar Hugging Face) EXPOSE 7860 # Perintah menjalankan server dengan Gunicorn CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]