Download Dockerfile from rascal66/yushen: direct link, hf CLI and curl.
- Browser
- Download file 1.38 kB
-
https://huggingface.co/spaces/rascal66/yushen/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rascal66/yushen/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rascal66/yushen/resolve/main/Dockerfile
1.38 kB
| FROM vevc/ubuntu:25.7.14 | |
| # Set environment variables | |
| ENV USER=vevc | |
| ENV HOME=/home/$USER | |
| # Install required packages | |
| RUN apt-get update && apt-get install -y \ | |
| wget \ | |
| unzip \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Download and install EasyTier | |
| WORKDIR $HOME | |
| RUN wget -O easytier-linux-x86_64.zip https://github.com/EasyTier/EasyTier/releases/download/v2.2.4/easytier-linux-x86_64-v2.2.4.zip \ | |
| && unzip easytier-linux-x86_64.zip \ | |
| && mv easytier-linux-x86_64 easytier \ | |
| && rm easytier-linux-x86_64.zip | |
| # Create EasyTier configuration file | |
| RUN mkdir -p $HOME/easytier \ | |
| && echo 'hostname = "hugingface-vps"\n\ | |
| ipv4 = "10.6.6.11"\n\ | |
| listeners = ["ws://0.0.0.0:11010/"]\n\ | |
| rpc_portal = "0.0.0.0:15888"\n\ | |
| \n\ | |
| [network_identity]\n\ | |
| network_name = "default"\n\ | |
| network_secret = "HQY8879725"\n\ | |
| \n\ | |
| [flags]\n\ | |
| no_tun = true' > $HOME/easytier/config.toml | |
| # Install Supervisor | |
| RUN apt-get update && apt-get install -y supervisor \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Configure Supervisor | |
| RUN echo '[supervisord]\n\ | |
| nodaemon=true\n\ | |
| \n\ | |
| [program:easytier]\n\ | |
| command=/home/vevc/easytier/easytier-core -c /home/vevc/easytier/config.toml\n\ | |
| autostart=true\n\ | |
| autorestart=true\n\ | |
| user=vevc' > /etc/supervisor/conf.d/easytier.conf | |
| # Expose necessary ports | |
| EXPOSE 11010 15888 | |
| # Start Supervisor | |
| CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"] |