# Builds any server in this folder on the public python image, for when the template's base image isn't reachable: # # podman build -f mcp-servers/_common/Dockerfile.python -t : mcp-servers/ # # The rendered Dockerfile builds on the platform's hardened base, and this doesn't: it's a larger image, with pip # and a full Debian userland. Replace it with the rendered Dockerfile once the base image is available. FROM docker.io/library/python:3.13.16 WORKDIR /app COPY requirements.txt constraints.txt ./ RUN pip install --no-cache-dir -r requirements.txt -c constraints.txt \ && useradd --uid 1000 --no-create-home --shell /usr/sbin/nologin mcp COPY server.py mcp_connection.py ./ ENV LOG_LEVEL=INFO ENV LOG_FORMAT=json USER 1000 CMD ["python", "server.py"]