Download rust-code-server-copy/Dockerfile from zohadev/codes: direct link, hf CLI and curl.
- Browser
- Download file 470 Bytes
-
https://huggingface.co/spaces/zohadev/codes/resolve/main/rust-code-server-copy/Dockerfile
- Command line
-
hf download hf://spaces/zohadev/codes/rust-code-server-copy/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/zohadev/codes/resolve/main/rust-code-server-copy/Dockerfile
470 Bytes
| FROM python:3.9 | |
| RUN apt update -y && apt install -y curl | |
| RUN curl -fsSL https://code-server.dev/install.sh | sh | |
| RUN apt install -y \ | |
| git gcc wget gzip busybox sudo ffmpeg 7z go rustup golang | |
| RUN useradd user | |
| RUN mkdir /home/user | |
| RUN chown user /home/user | |
| USER user | |
| COPY setup.sh /home/user/setup.sh | |
| RUN bash /home/user/setup.sh | |
| USER root | |
| RUN busybox --install /bin | |
| RUN chsh -s bash | |
| USER root | |
| CMD bash -c "code-server --bind-addr 0.0.0.0:6378 --auth none" |