Spaces:
Running
Running
tuts4y0u
commited on
Commit
•
6b0a614
1
Parent(s):
6b3bc46
增加密码
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -1,11 +1,12 @@
|
|
1 |
FROM debian:sid
|
2 |
RUN apt update
|
3 |
RUN useradd -m -u 1000 user
|
4 |
-
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
|
5 |
RUN git clone https://github.com/novnc/noVNC.git noVNC
|
6 |
RUN mkdir -p /home/user/.vnc
|
7 |
-
ARG VNC_PWD
|
8 |
ARG VNC_RESOLUTION
|
|
|
|
|
9 |
RUN echo $VNC_PWD | vncpasswd -f > /home/user/.vnc/passwd
|
10 |
RUN chmod -R 777 /home/user/.vnc /tmp
|
11 |
ENV HOME=/home/user \
|
|
|
1 |
FROM debian:sid
|
2 |
RUN apt update
|
3 |
RUN useradd -m -u 1000 user
|
4 |
+
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 fuse libfuse2 -y
|
5 |
RUN git clone https://github.com/novnc/noVNC.git noVNC
|
6 |
RUN mkdir -p /home/user/.vnc
|
|
|
7 |
ARG VNC_RESOLUTION
|
8 |
+
RUN --mount=type=secret,id=VNC_PWD,mode=0444,required=true \
|
9 |
+
VNC_PWD=$(cat /run/secrets/VNC_PWD)
|
10 |
RUN echo $VNC_PWD | vncpasswd -f > /home/user/.vnc/passwd
|
11 |
RUN chmod -R 777 /home/user/.vnc /tmp
|
12 |
ENV HOME=/home/user \
|