File size: 513 Bytes
d40cfe3
 
e1295df
d40cfe3
 
e1295df
d40cfe3
 
 
1867440
d40cfe3
 
b6d27d9
648040c
 
06a0b22
648040c
 
1867440
8bc5d60
f8a5a5c
8bc5d60
e1295df
d40cfe3
 
1867440
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
# Use the official Python image
FROM python:3.13-slim

# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/

# Install the project into /app
COPY . /app
WORKDIR /app

# Allow statements and log messages to immediately appear in the logs
ENV PYTHONUNBUFFERED=1

# Set UV cache directory to /tmp which is always writable
ENV UV_CACHE_DIR=/tmp/uv-cache

# Install dependencies with clean cache
RUN uv sync --no-cache

EXPOSE 7860

ENV PORT=7860

# Run the FastMCP server
CMD ["uv", "run", "main.py"]