eienmojiki commited on
Commit
9870298
·
verified ·
1 Parent(s): 002d5f2

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11
2
+
3
+ RUN useradd -m -u 1000 user
4
+
5
+ RUN apt-get update && \
6
+ apt-get install -y --no-install-recommends \
7
+ build-essential \
8
+ git \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ WORKDIR /app
12
+
13
+ RUN git clone https://kogakisaki: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@github.com/kogakisaki/leafcat-mcp.git
14
+
15
+ RUN cd leafcat-mcp \
16
+ && pip install --no-cache-dir -r requirements.txt
17
+
18
+ RUN chown -R user: /app
19
+
20
+ USER user
21
+
22
+ EXPOSE 7860
23
+
24
+ CMD ["python", "app.py"]