Dockerfile 2.3 KB

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