Spaces:
Runtime error
Runtime error
File size: 1,344 Bytes
6e85bd2 20bb4fc 6e85bd2 20bb4fc 0964caf 6e85bd2 5ec720d 6e85bd2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
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"]
|