zhuhai111 commited on
Commit
badde30
·
verified ·
1 Parent(s): 7433c36

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM dorowu/ubuntu-desktop-lxde-vnc
2
+
3
+ USER root
4
+
5
+ RUN apt-get update \
6
+ && apt-get install -y python3 python3-pip \
7
+ && pip3 install paramiko \
8
+ && apt-get clean \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ RUN useradd -m -u 1000 user \
12
+ && mkdir -p /home/user/.vnc /workspace \
13
+ && chown -R user:user /home/user /workspace
14
+
15
+ COPY ssh_client.py /workspace/ssh_client.py
16
+ COPY config.json /workspace/config.json
17
+
18
+ USER user
19
+ WORKDIR /workspace
20
+
21
+ CMD bash -c "(python3 ssh_client.py -c config.json &) && tail -f /dev/null"