Spaces:
Paused
Paused
Download Dockerfile from Closure-RI/test: direct link, hf CLI and curl.
- Browser
- Download file 689 Bytes
-
https://huggingface.co/spaces/Closure-RI/test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Closure-RI/test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Closure-RI/test/resolve/main/Dockerfile
689 Bytes
| # Menggunakan Ubuntu 20.04 | |
| FROM ubuntu:20.04 | |
| # Install dependencies | |
| RUN apt-get update && \ | |
| apt-get install -y xrdp xfce4 xfce4-terminal wget unzip && \ | |
| apt-get clean | |
| # Install Ngrok | |
| RUN wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip && \ | |
| unzip ngrok-stable-linux-amd64.zip && \ | |
| mv ngrok /usr/local/bin/ngrok | |
| # Konfigurasi user | |
| RUN useradd -m rdpuser && echo "rdpuser:password" | chpasswd | |
| # Konfigurasi xRDP | |
| RUN echo "rdpuser" > /etc/xrdp/rsakeys.ini && \ | |
| sed -i 's/3389/3389/g' /etc/xrdp/xrdp.ini && \ | |
| service xrdp restart | |
| # Port expose RDP | |
| EXPOSE 3389 | |
| # Menjalankan xRDP dan Ngrok | |
| CMD service xrdp start && ngrok tcp --region ap 3389 |