Add opencode_service to unified repo

This commit is contained in:
2026-02-28 15:09:40 +11:00
parent 76f7367e2f
commit 03758a7c4e
2 changed files with 33 additions and 0 deletions

View 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"]