We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f979782 commit 9d15a93Copy full SHA for 9d15a93
Dockerfile
@@ -0,0 +1,28 @@
1
+# Use Python slim image
2
+FROM python:3.11-slim
3
+
4
+# Set working directory
5
+WORKDIR /app
6
7
+# Set Python unbuffered mode
8
+ENV PYTHONUNBUFFERED=1
9
10
+# Copy pyproject.toml and README.md first for better caching
11
+COPY pyproject.toml README.md ./
12
13
+# Copy the source code
14
+COPY src/ ./src/
15
16
+# Install the package and its dependencies from pyproject.toml
17
+RUN pip install --no-cache-dir .
18
19
+# Create non-root user
20
+RUN useradd -m -u 1000 mcpuser && \
21
+ chown -R mcpuser:mcpuser /app
22
23
+# Switch to non-root user
24
+USER mcpuser
25
26
+# Run the server
27
+CMD ["python", "-m", "scrapegraph_mcp.server"]
28
0 commit comments