Spaces:
Paused
Paused
Download Dockerfile from ken-q/opencode-home: direct link, hf CLI and curl.
- Browser
- Download file 415 Bytes
-
https://huggingface.co/spaces/ken-q/opencode-home/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ken-q/opencode-home/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ken-q/opencode-home/resolve/main/Dockerfile
415 Bytes
| FROM node:20 | |
| RUN apt-get update && apt-get install -y curl git dos2unix && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /home/node/app | |
| RUN chown -R node:node /home/node/app | |
| USER node | |
| ENV NPM_CONFIG_PREFIX=/home/node/.npm-global | |
| ENV PATH=/home/node/.npm-global/bin:$PATH | |
| RUN npm install -g opencode-ai | |
| COPY --chown=node:node . . | |
| RUN dos2unix start.sh && chmod +x start.sh | |
| EXPOSE 7860 | |
| CMD ["/bin/bash", "./start.sh"] | |