@@ -8,24 +8,29 @@ ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy
88
99WORKDIR /app
1010COPY . /app
11+ RUN apt update && apt install -y git
1112RUN --mount=type=cache,target=/root/.cache/uv \
12- --mount=type=bind,source=uv.lock,target=uv.lock \
13- --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
14- uv sync --locked --no-install-project --no-editable --no-dev
13+ --mount=type=bind,source=uv.lock,target=uv.lock \
14+ --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
15+ uv sync --locked --no-install-project --no-editable --no-dev
1516RUN --mount=type=cache,target=/root/.cache/uv \
1617 uv sync --locked --no-editable --no-dev
1718
18- # Dinal image without uv
19+ RUN uv build
20+ RUN mv ./dist/sysdig_mcp_server-*-py3-none-any.whl /tmp/sysdig_mcp_server-1.0.0-py3-none-any.whl
21+
22+ # Final image without uv
1923FROM python:3.12-slim
2024# It is important to use the image that matches the builder, as the path to the
2125# Python executable must be the same
2226
23- # Copy the application from the builder
24- COPY --from=builder --chown=app:app /app /app
25-
2627WORKDIR /app
2728
28- # Place executables in the environment at the front of the path
29- ENV PATH="/app/.venv/bin:$PATH"
29+ RUN apt update && apt install -y git
30+ # Copy the application from the builder
31+ COPY --from=builder --chown=app:app /tmp/sysdig_mcp_server-1.0.0-py3-none-any.whl /app
32+ COPY --from=builder --chown=app:app /app/app_config.yaml /app
33+
34+ RUN pip install /app/sysdig_mcp_server-1.0.0-py3-none-any.whl
3035
31- ENTRYPOINT ["/bin/sh" , "entrypoint.sh " ]
36+ ENTRYPOINT ["sysdig-mcp-server " ]
0 commit comments