Lechcher commited on
Commit
e97a7af
·
verified ·
1 Parent(s): 6343ef3

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -0
Dockerfile ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This is Lechcher's VPS on Hugging face or OpenXLab! (Lxde version)
2
+ FROM debian:sid
3
+
4
+ # This is user's part:
5
+ RUN useradd -m -u 1000 user
6
+
7
+ # Upgrade and update your system:
8
+ RUN apt update
9
+ RUN apt install software-properties-common apt-transport-https curl -y
10
+
11
+ # This is desktop environment and dependents part:
12
+ RUN apt install xfce4-terminal lxde aqemu sudo curl wget aria2 qemu-system-x86 htop chromium screen tigervnc-standalone-server python3-pip python3-websockify python3 git -y && rm -rf /var/lib/apt/lists/*
13
+
14
+ # This is set default graphical target:
15
+ RUN systemctl get-default
16
+ RUN systemctl set-default graphical.target
17
+
18
+ # Emable 32bit support:
19
+ RUN dpkg --add-architecture i386
20
+
21
+ # This is part that you can install your apps by: RUN apt install <repositories>:
22
+
23
+ # This is VNC viewer part:
24
+ RUN git clone https://github.com/novnc/noVNC.git noVNC
25
+ ENV HOME=/home/user \
26
+ PATH=/home/user/.local/bin:$PATH
27
+
28
+ # This is the command to run VPS:
29
+ CMD vncserver -SecurityTypes None -geometry 1280x600 && ./noVNC/utils/novnc_proxy --vnc localhost:5901 --listen 0.0.0.0:7860