Update Dockerfile
Browse files- Dockerfile +7 -25
Dockerfile
CHANGED
|
@@ -1,29 +1,11 @@
|
|
| 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
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 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
|
|
|
|
|
|
|
| 1 |
FROM debian:sid
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
RUN apt update
|
| 3 |
+
RUN useradd -m -u 1000 user
|
| 4 |
+
RUN apt install wget curl sudo git curl -y
|
| 5 |
+
RUN git clone https://github.com/dyl... /opt/neofetch && \
|
| 6 |
+
ln -s /opt/neofetch/neofetch /usr/local/bin/neofetch
|
| 7 |
+
RUN curl -fsSL https://code-server.de... | sh -s -- --dry-run
|
| 8 |
+
RUN curl -fsSL https://code-server.de... | sh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
ENV HOME=/home/user \
|
| 10 |
PATH=/home/user/.local/bin:$PATH
|
| 11 |
+
CMD code-server --auth none --bind-addr 0.0.0.0:7860
|
|
|
|
|
|