-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 811 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# MCP Audit - Docker Image
# Lightweight container for running MCP security audits
FROM python:3.11-slim
LABEL org.opencontainers.image.title="MCP Audit"
LABEL org.opencontainers.image.description="Security audit tool for MCP configurations"
LABEL org.opencontainers.image.source="https://github.com/apisec-inc/mcp-audit"
LABEL org.opencontainers.image.vendor="APIsec"
LABEL org.opencontainers.image.licenses="MIT"
# Set working directory
WORKDIR /app
# Copy package files
COPY pyproject.toml README.md ./
COPY mcp_audit/ ./mcp_audit/
# Install the package
RUN pip install --no-cache-dir .
# Create non-root user for security
RUN useradd --create-home --shell /bin/bash mcpuser
USER mcpuser
# Set default working directory for scans
WORKDIR /scan
# Default command
ENTRYPOINT ["mcp-audit"]
CMD ["scan"]