@
YaD2x 之前有个公开的,太老了,不太好用,后来就自己封装了一个:
```dockerfile
FROM jlesage/baseimage-gui:ubuntu-20.04-v4
# change to tsinghua mirror
RUN sed -i "s@http://.*
archive.ubuntu.com@http://
mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list &&\
sed -i "s@http://.*
security.ubuntu.com@http://
mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list
# install dependencies
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
libgtk-3-0 \
libnotify4 \
libnss3 \
libxss1 \
xdg-utils \
libatspi2.0-0 \
libsecret-1-0 \
libxtst6 \
libx11-xcb1 \
libdrm2 \
libgbm1 \
libasound2 \
language-pack-zh-hans \
fonts-wqy-microhei
# install baidu netdisk linux version
COPY baidunetdisk_4.17.7_amd64.deb /tmp/
RUN dpkg -i /tmp/baidunetdisk_4.17.7_amd64.deb
# config VNC
RUN set-cont-env APP_NAME "百度网盘" && \
set-cont-env HOME "/home/app"
RUN APP_ICON_URL="
https://www.baidu.com/more/img/wangpanlogo.png" &&\
install_app_icon.sh "$APP_ICON_URL"
# prepare configurations
RUN mkdir -p /home/app/Downloads && \
mkdir -p /config/appConfig && \
ln -s /config/appConfig /home/app/.config && \
chown -R 1000:1000 /home/app
COPY
startapp.sh /
startapp.sh# for debug usage
#RUN apt-get install -y vim
```
startapp.sh:
```shell
#!/bin/bash
export HOME=/home/app
export LANG=zh_CN.UTF-8
exec /opt/baidunetdisk/baidunetdisk --no-sandbox
```
baidunetdisk_4.17.7_amd64.deb 是我提前下好的客户端安装包,去官网下载新的替换名字应该就行了。