File size: 494 Bytes
9870298
 
 
 
 
 
 
 
 
 
 
 
b17ca33
 
9870298
 
 
 
 
 
f7ac8fc
 
9870298
 
 
 
11e7488
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
FROM python:3.11

RUN useradd -m -u 1000 user

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
    build-essential \
    git \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app

RUN --mount=type=secret,id=REPO,mode=0444,required=true \
    git clone $(cat /run/secrets/REPO) leafcat-mcp

RUN cd leafcat-mcp \
    && pip install --no-cache-dir -r requirements.txt

RUN chown -R user: /app

WORKDIR /app/leafcat-mcp

USER user

EXPOSE 7860

ENTRYPOINT ["python", "app.py"]