Download Dockerfile from bjo163/workspace: direct link, hf CLI and curl.
- Browser
- Download file 352 Bytes
-
https://huggingface.co/spaces/bjo163/workspace/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/bjo163/workspace/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bjo163/workspace/resolve/main/Dockerfile
352 Bytes
| FROM ghcr.io/coder/coder:latest | |
| # Set environment variables | |
| ENV CODER_DATA=/home/coder/.config | |
| # Create the necessary directory | |
| RUN mkdir -p $CODER_DATA | |
| # Copy docker.sock from host | |
| VOLUME /var/run/docker.sock:/var/run/docker.sock | |
| # Command to start the container | |
| CMD ["sh", "-c", "groupadd -g $(getent group docker | cut -d: -f3) coder && coder"] | |