test / Dockerfile
Closure-RI's picture
Update Dockerfile
ce879c8 verified
raw
history blame contribute delete
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