mantrakp commited on
Commit
ef7476a
·
verified ·
1 Parent(s): 477af22

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +64 -0
Dockerfile ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+
3
+ # Install dependencies
4
+ RUN apt update && \
5
+ apt upgrade -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" && \
6
+ apt install -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" \
7
+ coreutils \
8
+ util-linux \
9
+ bsdutils \
10
+ file \
11
+ openssl \
12
+ libssl-dev \
13
+ locales \
14
+ ca-certificates \
15
+ ssh \
16
+ wget \
17
+ patch \
18
+ sudo \
19
+ htop \
20
+ dstat \
21
+ vim \
22
+ tmux \
23
+ curl \
24
+ git \
25
+ jq \
26
+ zsh \
27
+ ksh \
28
+ gcc \
29
+ g++ \
30
+ xz-utils \
31
+ build-essential \
32
+ bash-completion && \
33
+ apt-get clean
34
+
35
+ ENV NVM_DIR=/root/.nvm
36
+ ENV NODE_VERSION=18
37
+
38
+ # Install NVM and Node.js
39
+ RUN apt-get update && apt-get install -y curl && \
40
+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash && \
41
+ . $NVM_DIR/nvm.sh && \
42
+ nvm install $NODE_VERSION && \
43
+ nvm use $NODE_VERSION && \
44
+ nvm alias default $NODE_VERSION && \
45
+ npm install -g bun
46
+
47
+ ENV NODE_PATH=$NVM_DIR/$NODE_VERSION/lib/node_modules
48
+ ENV PATH=$NVM_DIR/$NODE_VERSION/bin:$PATH
49
+
50
+ # Install Astral UV
51
+ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
52
+ RUN . $NVM_DIR/nvm.sh && \
53
+ nvm use default && \
54
+ echo "Bunx is available:" && \
55
+ bunx --version && \
56
+ echo "Bun is available:" && \
57
+ bun --version
58
+
59
+ ENV MCP_COMMAND="bunx -y github-repo-mcp"
60
+ ENV IDLE_TIMEOUT_MINS=1
61
+ EXPOSE 8000
62
+ CMD ["/bin/bash", "-c", ". $NVM_DIR/nvm.sh && nvm use default && bunx -y supergateway-idle-timeout --stdio '${MCP_COMMAND}' --port 8000 --base-url http://0.0.0.0:8000 --ssePath /sse --messagePath /message --idle-timeout-mins ${IDLE_TIMEOUT_MINS}"]
63
+
64
+ # docker build -t mantrakp04/mcprunner:latest . --push