Add opencode_service to unified repo
This commit is contained in:
12
opencode_service/Dockerfile
Normal file
12
opencode_service/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM node:20-slim
|
||||
|
||||
# Install the opencode-ai CLI globally
|
||||
RUN npm install -g opencode-ai@1.1.47
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Expose the headless server port
|
||||
EXPOSE 5000
|
||||
|
||||
# Start in headless mode, listening on all interfaces
|
||||
CMD ["opencode", "serve", "--port", "5000", "--hostname", "0.0.0.0"]
|
||||
Reference in New Issue
Block a user