Dockerfile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. FROM ubuntu:bionic
  2. RUN apt update && \
  3. apt install -y libnss3 libgtk-3-0 libx11-xcb1 libxss1 libasound2 desktop-file-utils && \
  4. apt install -y fonts-droid-fallback && \
  5. apt clean && rm -rf /var/lib/apt/lists/*
  6. #ARG BAIDUNETDISK_URL="http://wppkg.baidupcs.com/issue/netdisk/LinuxGuanjia/3.0.1/baidunetdisk_linux_3.0.1.2.deb"
  7. #ARG BAIDUNETDISK_URL="https://issuepcdn.baidupcs.com/issue/netdisk/LinuxGuanjia/4.3.0/baidunetdisk_4.3.0_amd64.deb"
  8. #RUN apt update && apt install -y wget && \
  9. # cd /tmp && wget $BAIDUNETDISK_URL && dpkg -i baidunetdisk_linux_*.deb && rm baidunetdisk_linux_*.deb && \
  10. # apt remove -y wget && apt autoremove -y && apt clean && rm -rf /var/lib/apt/lists/*
  11. RUN apt update \
  12. && apt install -y --no-install-recommends --allow-unauthenticated \
  13. libnotify4 xdg-utils libsecret-1-0
  14. COPY fs/baidunetdisk_4.3.0_amd64.deb /tmp/
  15. RUN cd /tmp && dpkg -i baidunetdisk_4.3.0_amd64.deb && rm baidunetdisk_4.3.0_amd64.deb
  16. ARG NOVNC=/opt/noVNC
  17. RUN apt update && apt install -y wget git && \
  18. export DEBIAN_FRONTEND=noninteractive && apt install -y vnc4server xfce4 python3 firefox xfce4-terminal mousepad && \
  19. git clone --depth 1 https://github.com/novnc/noVNC.git $NOVNC && \
  20. git clone --depth 1 https://github.com/novnc/websockify.git $NOVNC/utils/websockify && \
  21. find ${NOVNC} -name ".git*" | xargs rm -rf && \
  22. ln -s /usr/bin/python3 /usr/bin/python && \
  23. ln -s $NOVNC/vnc.html $NOVNC/index.html && \
  24. touch /root/.Xauthority && \
  25. apt remove -y wget git && apt autoremove -y && apt clean && rm -rf /var/lib/apt/lists/*
  26. # COPY vnc /root/.vnc
  27. COPY fs/*.desktop /root/Desktop/
  28. COPY fs/baidunetdisk.desktop /root/Desktop/
  29. COPY fs/readme.1st /root/Desktop/
  30. ARG VNC_PASSWORD=12345678
  31. COPY xstartup /root/.vnc/
  32. RUN printf "${VNC_PASSWORD}\n${VNC_PASSWORD}\n\n" | vncpasswd
  33. COPY baidunetdisk_entrypoint.sh /
  34. ENTRYPOINT ["/baidunetdisk_entrypoint.sh"]