-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (20 loc) · 718 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (20 loc) · 718 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
# syntax=docker/dockerfile:1
FROM python:3.11-slim
# Allow statements and log messages to immediately appear in the logs
ENV PYTHONUNBUFFERED=1
# Set working directory
WORKDIR /app
# Install uv (no pip needed later)
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* \
&& curl -LsSf https://astral.sh/uv/install.sh | sh
ENV PATH="/root/.local/bin:$PATH"
# Copy project metadata first for caching
COPY pyproject.toml uv.lock ./
# Install dependencies into the system environment
RUN uv sync --frozen --no-install-project --no-dev
# Copy project files
COPY . .
# Expose port
EXPOSE 8080
# Run your FastMCP server using uv
ENTRYPOINT ["uv", "run", "python", "urldna_mcp/server.py"]