Files
mcp-maildir/pkg/Dockerfile
T
renovate bf751732a0
renovate/stability-days Updates have met minimum release age requirement
Docker Build and Push / test (pull_request) Successful in 1m23s
PR Checks / hadolint (pull_request) Successful in 8s
Docker Build and Push / integration-test (pull_request) Successful in 1m29s
PR Checks / build-test (pull_request) Failing after 36s
PR Checks / pytest (pull_request) Successful in 1m15s
Docker Build and Push / build (pull_request) Failing after 49s
chore(deps): update docker.io/library/python docker tag to v3.15
2026-10-16 15:12:47 +00:00

25 lines
731 B
Docker

# 3.13, because with 3.14 it requires gcc (wheels not available)
FROM docker.io/library/python:3.15-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
# Pre-download the embedding model into the image to avoid runtime downloads
RUN python -c "from fastembed import TextEmbedding; TextEmbedding(model_name='BAAI/bge-small-en-v1.5')"
# Copy the source code
COPY src/ ./src/
# Command to run the MCP server
CMD ["python", "src/server.py"]