rclon commited on
Commit
f86a298
·
verified ·
1 Parent(s): b4aa678

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +33 -0
Dockerfile ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ RUN useradd -ms /bin/bash mcp
4
+
5
+ WORKDIR /app
6
+
7
+ RUN apt-get update && \
8
+ apt-get install -y curl unzip && \
9
+ curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
10
+ apt-get install -y nodejs && \
11
+ apt-get clean && rm -rf /var/lib/apt/lists/*
12
+
13
+ COPY entrypoint.sh /app/
14
+ RUN chmod +x /app/entrypoint.sh
15
+
16
+ USER mcp
17
+ RUN curl -fsSL https://bun.sh/install | bash
18
+
19
+ ENV BUN_INSTALL="/home/mcp/.bun"
20
+ ENV PATH="${BUN_INSTALL}/bin:${PATH}"
21
+
22
+ USER root
23
+ RUN pip install --no-cache-dir mcpo uv
24
+
25
+ RUN mkdir -p /app/.cache/uv && chown -R mcp:mcp /app
26
+
27
+ ENV XDG_CACHE_HOME="/app/.cache"
28
+
29
+ USER mcp
30
+
31
+ EXPOSE 8000
32
+
33
+ ENTRYPOINT ["/app/entrypoint.sh"]