Spaces:
Building
Building
thejagstudio
commited on
Commit
•
4dd6fe0
1
Parent(s):
272d627
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -3,7 +3,7 @@ RUN chown root:shadow /etc/shadow; chmod 640 /etc/shadow;
|
|
3 |
RUN [ -r /sbin/unix_chkpwd ] && chmod 2755 /sbin/unix_chkpwd || echo "/sbin/unix_chkpwd skipped"
|
4 |
RUN useradd -d /home/user -s /bin/bash -m -u 1000 user
|
5 |
RUN chown user -R /home/user; echo "cd ~" > /home/user/.bashrc;
|
6 |
-
RUN --mount=type=secret,id=VNC_PASSWORD,mode=0444,required=
|
7 |
echo 'user:$(cat /run/secrets/VNC_PASSWORD)' | chpasswd
|
8 |
RUN pwconv
|
9 |
# RUN apt-add-repository "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib"# RUN wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
|
@@ -33,7 +33,7 @@ RUN hostname hf-server || echo 'failed to set hostname'
|
|
33 |
RUN git clone https://github.com/novnc/noVNC.git noVNC
|
34 |
RUN mkdir -p /home/user/.vnc
|
35 |
RUN chmod -R 777 /home/user/.vnc /tmp
|
36 |
-
RUN --mount=type=secret,id=VNC_PASSWORD,mode=0444,required=
|
37 |
cat /run/secrets/VNC_PASSWORD | vncpasswd -f > /home/user/.vnc/passwd
|
38 |
ENV HOME=/home/user \
|
39 |
PATH=/home/user/.local/bin:$PATH
|
|
|
3 |
RUN [ -r /sbin/unix_chkpwd ] && chmod 2755 /sbin/unix_chkpwd || echo "/sbin/unix_chkpwd skipped"
|
4 |
RUN useradd -d /home/user -s /bin/bash -m -u 1000 user
|
5 |
RUN chown user -R /home/user; echo "cd ~" > /home/user/.bashrc;
|
6 |
+
RUN --mount=type=secret,id=VNC_PASSWORD,mode=0444,required=false \
|
7 |
echo 'user:$(cat /run/secrets/VNC_PASSWORD)' | chpasswd
|
8 |
RUN pwconv
|
9 |
# RUN apt-add-repository "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib"# RUN wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
|
|
|
33 |
RUN git clone https://github.com/novnc/noVNC.git noVNC
|
34 |
RUN mkdir -p /home/user/.vnc
|
35 |
RUN chmod -R 777 /home/user/.vnc /tmp
|
36 |
+
RUN --mount=type=secret,id=VNC_PASSWORD,mode=0444,required=false \
|
37 |
cat /run/secrets/VNC_PASSWORD | vncpasswd -f > /home/user/.vnc/passwd
|
38 |
ENV HOME=/home/user \
|
39 |
PATH=/home/user/.local/bin:$PATH
|