Skip to content

Instantly share code, notes, and snippets.

@TerrorJack
Created January 24, 2020 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TerrorJack/b93f1f4c5b9a5c2b0c5e45875083acff to your computer and use it in GitHub Desktop.
Save TerrorJack/b93f1f4c5b9a5c2b0c5e45875083acff to your computer and use it in GitHub Desktop.
FROM ubuntu:bionic
ARG DEBIAN_FRONTEND=noninteractive
RUN \
apt update && \
apt full-upgrade -y && \
apt install -y \
curl \
desktop-file-utils \
fonts-noto \
libasound2 \
libgtk-3-0 \
libnss3 \
libx11-xcb1 \
libxss1 \
sudo && \
curl http://wppkg.baidupcs.com/issue/netdisk/LinuxGuanjia/3.0.1/baidunetdisk_linux_3.0.1.2.deb -o /tmp/baidupcs.deb && \
dpkg -i /tmp/baidupcs.deb && \
useradd --create-home --shell /bin/bash admin && \
echo "admin ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers && \
apt autoremove --purge -y && \
apt clean && \
rm -rf \
/tmp/*
USER admin
WORKDIR /home/admin
CMD ["/opt/baidunetdisk/baidunetdisk"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment