13 lines
325 B
Docker
13 lines
325 B
Docker
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"]
|