Spaces:
Runtime error
Runtime error
FROM ubuntu:20.04 | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update && apt-get install -y --fix-missing --assume-yes \ | |
tzdata \ | |
xfce4 xfce4-goodies \ | |
tightvncserver wget sudo curl python3 unzip xauth \ | |
--no-install-recommends && apt-get clean | |
RUN ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime && dpkg-reconfigure --frontend noninteractive tzdata | |
RUN useradd -m rdpuser && echo "rdpuser:123456" | chpasswd && adduser rdpuser sudo | |
RUN wget --no-check-certificate https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip \ | |
&& unzip ngrok-stable-linux-amd64.zip \ | |
&& mv ngrok /usr/local/bin/ | |
# Install Google Chrome | |
RUN wget --no-check-certificate https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \ | |
&& apt-get install -y ./google-chrome-stable_current_amd64.deb \ | |
&& rm google-chrome-stable_current_amd64.deb | |
# Install Chrome Remote Desktop | |
RUN wget --no-check-certificate https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb \ | |
&& apt-get install -y ./chrome-remote-desktop_current_amd64.deb \ | |
&& rm chrome-remote-desktop_current_amd64.deb | |
RUN mkdir -p /home/rdpuser/.config/chrome-remote-desktop \ | |
&& chown -R rdpuser:rdpuser /home/rdpuser/.config | |
COPY app.py /app.py | |
RUN chmod +x /app.py | |
EXPOSE 5901 | |
CMD ["python3", "/app.py"] | |