Spaces:
Building
Building
FROM dorowu/ubuntu-desktop-lxde-vnc | |
USER root | |
RUN rm -f /etc/apt/sources.list.d/google-chrome.list \ | |
&& apt-get update \ | |
&& apt-get install -y python3 python3-pip \ | |
&& pip3 install paramiko \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN useradd -m -u 1000 user \ | |
&& mkdir -p /home/user/.vnc /workspace \ | |
&& chown -R user:user /home/user /workspace | |
COPY ssh_client.py /workspace/ssh_client.py | |
COPY config.json /workspace/config.json | |
USER user | |
WORKDIR /workspace | |
CMD bash -c "(python3 ssh_client.py -c config.json &) && tail -f /dev/null" | |