# Untuk GPU: gunakan image PyTorch dengan CUDA (opsional)
# FROM pytorch/pytorch:2.2.0-cuda12.1-cudnn8-runtime
# Untuk CPU saja: gunakan image slim agar ringan
FROM python:3.11-slim

# OS deps
RUN apt-get update && apt-get install -y --no-install-recommends     ffmpeg git build-essential &&     rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Copy requirements
COPY app/requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt

# Copy app
COPY app /app

# Expose port
EXPOSE 8000

# Start
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
