tuts4y0u commited on
Commit
37b7d05
1 Parent(s): a020f73

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -1,5 +1,4 @@
1
  FROM debian:sid
2
- RUN sudo hostname hf-server
3
  RUN chown root:shadow /etc/shadow; chmod 640 /etc/shadow;
4
  RUN [ -r /sbin/unix_chkpwd ] && chmod 2755 /sbin/unix_chkpwd || echo "/sbin/unix_chkpwd skipped"
5
  RUN useradd -d /home/user -s /bin/bash -m -u 1000 user
@@ -17,6 +16,7 @@ RUN apt remove -y light-locker xscreensaver-data xscreensaver
17
  RUN [ -r /etc/xdg/lxsession/LXDE/autostart ] && sed -i '/@xscreensaver -no-splash/d' /etc/xdg/lxsession/LXDE/autostart || echo "/etc/xdg/lxsession/LXDE/autostart skipped"
18
  RUN (gsettings set org.gnome.desktop.session idle-delay 0; gsettings set org.gnome.desktop.screensaver lock-enabled false;) || exit 0;
19
  # RUN chmod -R o+r / 2>/dev/null; exit 0;
 
20
  RUN git clone https://github.com/novnc/noVNC.git noVNC
21
  RUN mkdir -p /home/user/.vnc
22
  RUN chmod -R 777 /home/user/.vnc /tmp
 
1
  FROM debian:sid
 
2
  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
 
16
  RUN [ -r /etc/xdg/lxsession/LXDE/autostart ] && sed -i '/@xscreensaver -no-splash/d' /etc/xdg/lxsession/LXDE/autostart || echo "/etc/xdg/lxsession/LXDE/autostart skipped"
17
  RUN (gsettings set org.gnome.desktop.session idle-delay 0; gsettings set org.gnome.desktop.screensaver lock-enabled false;) || exit 0;
18
  # RUN chmod -R o+r / 2>/dev/null; exit 0;
19
+ RUN hostname hf-server || echo 'failed to set hostname'
20
  RUN git clone https://github.com/novnc/noVNC.git noVNC
21
  RUN mkdir -p /home/user/.vnc
22
  RUN chmod -R 777 /home/user/.vnc /tmp