Skip to content

Commit 97c9c7e

Browse files
committed
Fix the Dockerfile
Signed-off-by: David Gageot
1 parent 1f675b0 commit 97c9c7e

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*
2+
!src
3+
!uv.lock
4+
!pyproject.toml

Dockerfile

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1-
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
21
FROM python:3.13-slim
2+
RUN pip install --upgrade uv
33

4-
# Set working directory
54
WORKDIR /app
6-
7-
# Copy local code to the container image.
85
COPY . /app
6+
RUN --mount=type=cache,target=/root/.cache/uv \
7+
uv sync --locked
98

10-
# Install pip dependencies
11-
RUN pip install --upgrade pip \
12-
&& pip install .
13-
14-
# Expose necessary port if any (MCP typically uses stdio, but if needed, uncomment below)
15-
# EXPOSE 8000
16-
17-
# Run the MCP Server
18-
CMD ["python", "src/main.py"]
9+
CMD ["uv", "run", "python", "src/main.py"]

0 commit comments

Comments
 (0)