Download Dockerfile from Xlnk/vscode: direct link, hf CLI and curl.
- Browser
- Download file 707 Bytes
-
https://huggingface.co/spaces/Xlnk/vscode/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Xlnk/vscode/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Xlnk/vscode/resolve/main/Dockerfile
707 Bytes
| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update | |
| RUN apt-get install -y curl python3.11 python3-pip libmagic1 speedtest-cli neofetch ffmpeg imagemagick git git-lfs zip wget unzip yarn whois | |
| RUN apt-get install -y \ | |
| software-properties-common \ | |
| npm | |
| RUN npm install n -g | |
| RUN n 20 | |
| RUN npm install npm@latest -g | |
| RUN npm install -g pm2 | |
| RUN npm install -g yarn | |
| RUN useradd -m -u 1000 varxdev | |
| RUN curl -fsSL https://code-server.dev/install.sh | sh | |
| # END ROOT USER # | |
| USER varxdev | |
| ENV HOME=/home/varxdev \ | |
| PATH=/home/varxdev/.local/bin:$PATH | |
| WORKDIR $HOME | |
| COPY --chown=varxdev . $HOME/server | |
| CMD ["code-server", ".", "--bind-addr", "0.0.0.0:7860", "--auth", "none"] |