Skip to content

Commit 1026a97

Browse files
committed
dockerfile back
1 parent 6a7c2ee commit 1026a97

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
2+
3+
ENV UV_COMPILE_BYTECODE=1
4+
ENV UV_LINK_MODE=copy
5+
ENV UV_CACHE_DIR=/opt/uv-cache/
6+
7+
RUN apt-get update && apt-get install -y --no-install-recommends git
8+
9+
WORKDIR /app
10+
11+
RUN --mount=type=cache,target=UV_CACHE_DIR \
12+
--mount=type=bind,source=uv.lock,target=uv.lock \
13+
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
14+
uv sync --frozen --no-install-project --no-dev --no-editable
15+
16+
ADD . /app
17+
18+
RUN --mount=type=cache,target=UV_CACHE_DIR \
19+
uv sync --frozen --no-dev --no-editable
20+
21+
# Add virtual environment to PATH
22+
ENV PATH="/app/.venv/bin:$PATH"
23+
24+
ENTRYPOINT ["mcp-server-iris"]

0 commit comments

Comments
 (0)