Fountain Coach Gitowner-controlled · read only

fountainai-deployer.git · Dockerfile

fountainai-deployer.git / Dockerfile

revision 81c305650f031c060bf9e383b6b2d57f2a5f274d · complete file

# Use slim base image for smaller footprint
FROM python:3.11-slim

# Set working directory
WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    git \
    curl \
    && rm -rf /var/lib/apt/lists/*

# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy source code
COPY app app
COPY openapi.yaml openapi.yaml

# Expose internal port for FastAPI
EXPOSE 8000

# Run the FastAPI app using Uvicorn
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]