File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
2
+ # Use a Python image with uv pre-installed
3
+ FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS uv
4
+
5
+ # Set the working directory in the container
6
+ WORKDIR /app
7
+
8
+ # Enable bytecode compilation
9
+ ENV UV_COMPILE_BYTECODE=1
10
+
11
+ # Copy the necessary project files
12
+ COPY pyproject.toml uv.lock /app/
13
+
14
+ # Install the project's dependencies using the lockfile
15
+ RUN --mount=type=cache,target=/root/.cache/uv \
16
+ uv sync --frozen --no-install-project --no-dev --no-editable
17
+
18
+ # Add the rest of the project source code and install it
19
+ COPY src /app/src
20
+
21
+ RUN --mount=type=cache,target=/root/.cache/uv \
22
+ uv sync --frozen --no-dev --no-editable
23
+
24
+ # Runtime base
25
+ FROM python:3.12-slim-bookworm
26
+
27
+ WORKDIR /app
28
+
29
+ COPY --from=uv /root/.local /root/.local
30
+ COPY --from=uv /app/.venv /app/.venv
31
+
32
+ # Set environment variable for Python path
33
+ ENV PATH="/app/.venv/bin:$PATH"
34
+
35
+ # Default command to run the server
36
+ ENTRYPOINT ["mcp-server-rabbitmq" ]
You can’t perform that action at this time.
0 commit comments