-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (25 loc) · 992 Bytes
/
Dockerfile
File metadata and controls
37 lines (25 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0
FROM ghcr.io/astral-sh/uv:0.6.4-python3.13-bookworm AS builder
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
ENV UV_LINK_MODE=copy \
UV_COMPILE_BYTECODE=1 \
UV_PYTHON_DOWNLOADS=never \
UV_PYTHON=python3.13 \
UV_PROJECT_ENVIRONMENT=/app
RUN ls -la
# Copy code into builder
COPY . /src
WORKDIR /src
# Install just the slim-mcp package
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --no-sources --no-editable --package slim-mcp
FROM python:3.13-bookworm AS mcp-server-time
# Copy venv from builder with just the dependencies we need + our package
COPY --from=builder --chown=app:app /app /app
ENTRYPOINT ["/app/bin/mcp-server-time"]
FROM python:3.13-bookworm AS llamaindex-time-agent
# Copy venv from builder with just the dependencies we need + our package
COPY --from=builder --chown=app:app /app /app
ENTRYPOINT ["/app/bin/llamaindex-time-agent"]