# Taxy ML API — Docker image untuk Hugging Face Spaces (CPU) FROM python:3.11-slim WORKDIR /app # Dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Kode + model COPY . . # Cache ke /tmp (HF Spaces: home read-only) + port HF ENV PORT=7860 \ KERAS_HOME=/tmp/.keras \ HF_HOME=/tmp/.hf \ TF_CPP_MIN_LOG_LEVEL=3 \ PYTHONUNBUFFERED=1 EXPOSE 7860 CMD ["python", "serve.py"]