File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Use a Python image with uv pre-installed
2
+ FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS uv
3
+
4
+ # Install the project into `/app`
5
+ WORKDIR /app
6
+
7
+ # Enable bytecode compilation
8
+ ENV UV_COMPILE_BYTECODE=1
9
+
10
+ # Copy from the cache instead of linking since it's a mounted volume
11
+ ENV UV_LINK_MODE=copy
12
+
13
+ # Install the project's dependencies using the lockfile and settings
14
+ RUN --mount=type=cache,target=/root/.cache/uv \
15
+ --mount=type=bind,source=uv.lock,target=uv.lock \
16
+ --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
17
+ uv sync --frozen --no-install-project --no-dev --no-editable
18
+
19
+ # Then, add the rest of the project source code and install it
20
+ # Installing separately from its dependencies allows optimal layer caching
21
+ ADD . /app
22
+ RUN --mount=type=cache,target=/root/.cache/uv \
23
+ uv sync --frozen --no-dev --no-editable
24
+
25
+ FROM python:3.12-slim-bookworm
26
+
27
+ WORKDIR /app
28
+
29
+ # COPY --from=uv /root/.local /root/.local
30
+ COPY --from=uv --chown=app:app /app/.venv /app/.venv
31
+
32
+ # Place executables in the environment at the front of the path
33
+ ENV PATH="/app/.venv/bin:$PATH"
34
+
35
+ ENTRYPOINT ["mcp-server-iris" ]
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " mcp-server-iris"
3
- version = " 0.1.1 "
3
+ version = " 0.1.2 "
4
4
description = " A Model Context Protocol server for InterSystems IRIS."
5
5
readme = " README.md"
6
6
requires-python = " >=3.10"
You can’t perform that action at this time.
0 commit comments