Skip to content

Commit 5040b18

Browse files
committed
fix: resolve Docker build and configuration issues
- Fix Docker build error by copying README.md (required by pyproject.toml) - Change CMD to ENTRYPOINT to properly handle MCP arguments - Remove unused EXPOSE 8000 port (MCP uses stdio, not HTTP) - Update README comment to clarify Docker image is for local builds - Docker build and run now work correctly for MCP integration Fixes: 'docker build -t pia-mcp-server:latest .' command
1 parent c5daf05 commit 5040b18

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN pip install uv
1414

1515
# Copy project files
1616
COPY pyproject.toml .
17+
COPY README.md .
1718
COPY src/ src/
1819

1920
# Install Python dependencies
@@ -24,12 +25,9 @@ RUN groupadd -r pia && useradd -r -g pia pia
2425
RUN chown -R pia:pia /app
2526
USER pia
2627

27-
# Expose port (if needed for future HTTP interface)
28-
EXPOSE 8000
29-
3028
# Set environment variables
3129
ENV PYTHONPATH=/app/src
3230
ENV PIA_API_URL=https://mcp.programintegrity.org/
3331

3432
# Run the server
35-
CMD ["python", "-m", "pia_mcp_server"]
33+
ENTRYPOINT ["python", "-m", "pia_mcp_server"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ uv pip install -e ".[test]"
7373
For Docker:
7474

7575
```bash
76-
# Build the Docker image
76+
# Build the Docker image if you want to use a local image
7777
git clone https://github.com/Program-Integrity-Alliance/pia-mcp-local.git
7878
cd pia-mcp-local
7979
docker build -t pia-mcp-server:latest .

0 commit comments

Comments
 (0)