Fountain Coach Gitowner-controlled · read only

fountainai-deployer.git · Dockerfile

fountainai-deployer.git / Dockerfile

revision b15d77ce8978fdd177bba912f992f0b2374d9816 · 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"]