Skip to content

Commit 8dc400d

Browse files
chore: add Dockerfile for Glama scanning
1 parent 8d54d90 commit 8dc400d

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

.dockerignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.git
2+
.github
3+
.pytest_cache
4+
.ruff_cache
5+
.venv
6+
__pycache__
7+
*.pyc
8+
*.pyo
9+
*.pyd
10+
*.sqlite3
11+
*.db
12+
*.log
13+
.DS_Store
14+
docs/launch/
15+
docs/superpowers/

Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM python:3.13-slim
2+
3+
ENV PYTHONUNBUFFERED=1 \
4+
PIP_NO_CACHE_DIR=1 \
5+
XDG_CACHE_HOME=/home/mcp/.cache
6+
7+
WORKDIR /app
8+
9+
COPY pyproject.toml README.md LICENSE ./
10+
COPY src ./src
11+
12+
RUN useradd --create-home --home-dir /home/mcp --shell /usr/sbin/nologin mcp
13+
RUN pip install --no-cache-dir .
14+
15+
# Glama only needs the server to start and respond to MCP introspection.
16+
# A symbol-only Python 3.13 index keeps the image fast and deterministic.
17+
RUN python-docs-mcp-server build-index --versions 3.13 --skip-content \
18+
&& chown -R mcp:mcp /home/mcp
19+
20+
USER mcp
21+
22+
CMD ["python-docs-mcp-server"]

0 commit comments

Comments
 (0)