opencode-mcp / Dockerfile
megar74877's picture
Update Dockerfile
77f73fc verified
raw
history blame contribute delete
321 Bytes
FROM node:20-slim
RUN apt-get update && apt-get install -y curl git python3 && rm -rf /var/lib/apt/lists/*
# Install OpenCode
RUN npm install -g opencode-ai
WORKDIR /app
# HF Space default port
EXPOSE 7860
# Start OpenCode serving the MCP protocol
CMD ["opencode", "serve", "--hostname", "0.0.0.0", "--port", "7860"]