# Dockerfile for GOV CA Transportation Infrastructure MCP Server
FROM python:3.12-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY gov_ca_transportation/ ./gov_ca_transportation/
COPY pyproject.toml .
# Install the package
RUN pip install --no-cache-dir -e .
# Expose the default SSE port
EXPOSE 8001
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Run the server with SSE transport
CMD ["python", "-m", "gov_ca_transportation.server", "--sse", "--host", "0.0.0.0", "--port", "8001"]