Files
mcp-maildir/pkg/Dockerfile
Julien Cabillot 4e45f3e8d9
All checks were successful
perso/mcp-maildir/pipeline/head This commit looks good
fix: perms
2026-02-27 10:32:42 -05:00

22 lines
549 B
Docker

# 3.13, because with 3.14 it requires gcc (wheels not available)
FROM docker.io/library/python:3.13-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file into the container
COPY requirements.txt .
# Install dependencies using buildkit cache
RUN --mount=type=cache,target=/root/.cache/pip pip install -r requirements.txt
# Copy the source code
COPY src/ ./src/
# Command to run the MCP server
CMD ["python", "src/server.py"]