Fountain Coach Gitowner-controlled · read only

fountainai-bootstrap-service.git · Dockerfile

fountainai-bootstrap-service.git / Dockerfile

revision 50706fcff79ab73444dab40648d3b8d3054f5208 · complete file

# bootstrap-service/Dockerfile
FROM python:3.11-slim

# Set working directory
WORKDIR /app

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

# Copy application code
COPY ./app ./app

# Ensure Uvicorn is available
# (uvicorn should already be in requirements.txt; otherwise add it here)
# USER nonroot  # uncomment if you create a non-root user

# Expose port (matches docker-compose)
EXPOSE 8000

# Default command is provided by docker-compose; 
# you can uncomment to have a fallback:
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]