Download Dockerfile from Echo-AI-official/opencode-mcp: direct link, hf CLI and curl.
- Browser
- Download file 321 Bytes
-
https://huggingface.co/spaces/Echo-AI-official/opencode-mcp/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Echo-AI-official/opencode-mcp/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Echo-AI-official/opencode-mcp/resolve/main/Dockerfile
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"] |