Download Dockerfile from immahadi/Docker: direct link, hf CLI and curl.
- Browser
- Download file 458 Bytes
-
https://huggingface.co/spaces/immahadi/Docker/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/immahadi/Docker/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/immahadi/Docker/resolve/main/Dockerfile
458 Bytes
| # Use lightweight Node.js base image | |
| FROM node:22-slim | |
| # Install git, curl, and bash | |
| RUN apt-get update && apt-get install -y git curl bash && rm -rf /var/lib/apt/lists/* | |
| # Install OpenCode CLI globally | |
| RUN npm install -g opencode-ai | |
| # Create workspace directory | |
| WORKDIR /workspace | |
| # Hugging Face default port is 7860 | |
| EXPOSE 7860 | |
| # Start OpenCode web server bound to 0.0.0.0 and port 7860 | |
| CMD ["sh", "-c", "opencode web --hostname 0.0.0.0 --port 7860"] | |