File size: 370 Bytes
33aad86
 
 
 
362257d
33aad86
 
 
 
362257d
6440980
33aad86
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM ghcr.io/astral-sh/uv:debian

WORKDIR /app

RUN apt update -y && apt install -y wget curl git unzip \
    && apt clean && rm -rf /var/lib/apt/lists/*

COPY main.py /app/main.py

# 使用独立的 fastmcp 包
RUN cd /app && uv init && uv add fastmcp uvicorn starlette fastapi

RUN mkdir -p /srv/files && chmod 755 /srv/files

EXPOSE 7860

CMD ["uv", "run", "main.py"]