NasarDope commited on
Commit
75cdde6
·
verified ·
1 Parent(s): 649c853

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:20-slim
2
+
3
+ # Install OpenCode
4
+ RUN npm install -g opencode-ai
5
+
6
+ # Install curl and git
7
+ RUN apt-get update && apt-get install -y \
8
+ curl \
9
+ git \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Set working directory
13
+ WORKDIR /app
14
+
15
+ # Copy config
16
+ COPY config.json /root/.opencode/config.json
17
+
18
+ # Expose port
19
+ EXPOSE 7860
20
+
21
+ # Start OpenCode
22
+ CMD ["opencode", "serve", "--port", "7860"]