@@ -27,53 +27,39 @@ RUN apt update \
2727 && apt autoclean -y \
2828 && apt autoremove -y \
2929 && rm -rf /var/lib/apt/lists/*
30- {% if image == "ubuntu:18.04" %}
31- ENV X11VNC_VERSION=0.9.16-1
32- {% else %}
33- ENV X11VNC_VERSION=0.9.14-1*
34- # arc-theme
35- RUN add-apt-repository -y ppa:noobslab/themes
36- {% endif %}
3730# install debs error if combine together
38- RUN add-apt-repository -y ppa:fcwu-tw/apps \
39- && apt update \
31+ RUN apt update \
4032 && apt install -y --no-install-recommends --allow-unauthenticated \
41- xvfb x11vnc=$X11VNC_VERSION \
42- {% for package in addon_packages %} {{package}} {% endfor %} \
43- && add-apt-repository -r ppa:fcwu-tw/apps \
33+ xvfb x11vnc \
34+ vim-tiny firefox ttf-ubuntu-font-family ttf-wqy-zenhei \
4435 && apt autoclean -y \
4536 && apt autoremove -y \
4637 && rm -rf /var/lib/apt/lists/*
47- {% if desktop == "lxde" %}
4838RUN apt update \
49- && apt install -y --no-install-recommends --allow-unauthenticated \
50- lxde gtk2-engines-murrine gnome-themes-standard gtk2-engines-pixbuf gtk2-engines-murrine arc-theme \
51- && apt autoclean -y \
52- && apt autoremove -y \
39+ && apt install -y gpg-agent \
40+ && curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
41+ && (dpkg -i ./google-chrome-stable_current_amd64.deb || apt-get install -fy) \
42+ && curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add \
43+ && rm google-chrome-stable_current_amd64.deb \
5344 && rm -rf /var/lib/apt/lists/*
45+ {% if desktop == "lxde" %}
5446{% endif %}
5547{% if desktop == "lxqt" %}
56- RUN apt update \
57- && apt install -y --no-install-recommends --allow-unauthenticated \
58- lxqt openbox gtk2-engines-murrine gnome-themes-standard gtk2-engines-pixbuf arc-theme \
59- && apt autoclean -y \
60- && apt autoremove -y \
61- && rm -rf /var/lib/apt/lists/*
6248{% endif %}
6349{% if desktop == "xfce4" %}
50+ {% endif %}
6451RUN apt update \
6552 && apt install -y --no-install-recommends --allow-unauthenticated \
66- xubuntu-desktop \
53+ lxde gtk2-engines-murrine gnome-themes-standard gtk2-engines-pixbuf gtk2-engines-murrine arc-theme \
6754 && apt autoclean -y \
6855 && apt autoremove -y \
6956 && rm -rf /var/lib/apt/lists/*
70- {% endif %}
7157# Additional packages require ~600MB
7258# libreoffice pinta language-pack-zh-hant language-pack-gnome-zh-hant firefox-locale-zh-hant libreoffice-l10n-zh-tw
7359
74- # tini for subreap
60+ # tini to fix subreap
7561ARG TINI_VERSION=v0.18.0
76- ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-{{arch}} /bin/tini
62+ ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /bin/tini
7763RUN chmod +x /bin/tini
7864
7965# ffmpeg
@@ -84,13 +70,13 @@ RUN apt update \
8470 && mkdir /usr/local/ffmpeg \
8571 && ln -s /usr/bin/ffmpeg /usr/local/ffmpeg/ffmpeg
8672
87-
8873# python library
8974COPY rootfs/usr/local/lib/web/backend/requirements.txt /tmp/
9075RUN apt-get update \
9176 && dpkg-query -W -f='${Package}\n' > /tmp/a.txt \
92- && apt-get install -y python-pip python-dev build-essential \
93- && pip install setuptools wheel && pip install -r /tmp/requirements.txt \
77+ && apt-get install -y python3-pip python3-dev build-essential \
78+ && pip3 install setuptools wheel && pip3 install -r /tmp/requirements.txt \
79+ && ln -s /usr/bin/python3 /usr/local/bin/python \
9480 && dpkg-query -W -f='${Package}\n' > /tmp/b.txt \
9581 && apt-get remove -y `diff --changed-group-format='%>' --unchanged-group-format='' /tmp/a.txt /tmp/b.txt | xargs` \
9682 && apt-get autoclean -y \
0 commit comments