Created
January 24, 2020 13:08
-
-
Save TerrorJack/b93f1f4c5b9a5c2b0c5e45875083acff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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