mg-mcp/Dockerfile
DJP e463c27663 Initial mg-mcp: Mailgun MCP server (Streamable HTTPS) for optical-dev
Containerized FastAPI + FastMCP server exposing send_email tool, backed
by Mailgun (mg.oliver.solutions). Bearer-token auth. Deployable to
/opt/mg-mcp/ on optical-dev.oliver.solutions behind the shared Apache vhost,
following the same pattern as adeo-maturity-tool / oliver-sales-ops-platform.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-06 22:05:38 -04:00

21 lines
418 B
Docker

FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
WORKDIR /app
RUN groupadd --system app && useradd --system --gid app --home-dir /app app
COPY requirements.txt ./
RUN pip install -r requirements.txt
COPY email_server.py ./
USER app
EXPOSE 8000
CMD ["uvicorn", "email_server:app", "--host", "0.0.0.0", "--port", "8000"]