Download Dockerfile from asons/ocweb: direct link, hf CLI and curl.
- Browser
- Download file 475 Bytes
-
https://huggingface.co/spaces/asons/ocweb/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/asons/ocweb/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/asons/ocweb/resolve/main/Dockerfile
475 Bytes
| FROM node:20-slim | |
| USER root | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ca-certificates curl bash \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Install OpenCode (official install script) | |
| RUN curl -fsSL https://opencode.ai/install | bash | |
| # Don't rely on .bashrc; make opencode available in non-interactive shells | |
| ENV PATH="/root/.opencode/bin:${PATH}" | |
| COPY . /app | |
| RUN chmod +x /app/start.sh | |
| EXPOSE 7860 | |
| CMD ["bash", "-lc", "/app/start.sh"] |