# Dockerfile for humanize-e # Build: docker build -t humanize-e . # Run: docker run -p 8000:8000 -e HUMANIZE_ADAPTER=/models humanize-e FROM python:3.11-slim # Install system deps RUN apt-get update && apt-get install -y --no-install-recommends \ git \ && rm -rf /var/lib/apt/lists/* # Create app directory WORKDIR /app # Copy requirements and install deps COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy source code COPY model.py . COPY app.py . # Create adapter directory placeholder RUN mkdir -p /app/humanize-e-adapter # Expose port EXPOSE 8000 # Default command CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]