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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -9
Dockerfile CHANGED
@@ -1,22 +1,20 @@
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"]
 
1
  FROM node:20-slim
2
 
3
+ # Install dependencies
 
 
 
4
  RUN apt-get update && apt-get install -y \
5
  curl \
6
  git \
7
+ python3 \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
+ # Install correct OpenCode package
11
+ RUN npm install -g @opencode/cli
12
+
13
  # Set working directory
14
  WORKDIR /app
15
 
 
 
 
16
  # Expose port
17
  EXPOSE 7860
18
 
19
+ # Start with shell
20
+ CMD ["node", "-e", "console.log('OpenCode Ready!')"]