megar74877 commited on
Commit
06ec2e8
·
verified ·
1 Parent(s): 50305d4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:20-slim
2
+
3
+ RUN apt-get update && apt-get install -y curl git python3 && rm -rf /var/lib/apt/lists/*
4
+
5
+ # Install OpenCode
6
+ RUN npm install -g opencode-ai
7
+
8
+ WORKDIR /app
9
+ COPY opencode.json /app/opencode.json
10
+
11
+ # HF Space default port
12
+ EXPOSE 7860
13
+
14
+ # Start OpenCode serving the MCP protocol
15
+ CMD ["opencode", "serve", "--hostname", "0.0.0.0", "--port", "7860"]