1- # Built with arch: amd64 flavor: lxde image: ubuntu:20.04
1+ # Built with arch: amd64 flavor: lxde image: ubuntu:jammy-20220531
22#
33################################################################################
44# base system
55################################################################################
66
7- FROM ubuntu:20.04 as system
7+ FROM ubuntu:jammy-20220531 as system
88
99
10+ ENV DEBIAN_FRONTEND noninteractive
11+ RUN apt-get update \
12+ && apt-get install -y --no-install-recommends ca-certificates \
13+ && apt-get autoclean -y \
14+ && apt-get autoremove -y \
15+ && rm -rf /var/lib/apt/lists/*
1016
1117RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
1218
13-
1419# built-in packages
15- ENV DEBIAN_FRONTEND noninteractive
16- RUN apt update \
17- && apt install -y --no-install-recommends software-properties-common curl apache2-utils \
18- && apt update \
19- && apt install -y --no-install-recommends --allow-unauthenticated \
20+ RUN apt-get update \
21+ && apt-get install -y --no-install-recommends software-properties-common curl apache2-utils \
22+ && apt-get update \
23+ && apt-get install -y --no-install-recommends \
2024 supervisor nginx sudo net-tools zenity xz-utils \
2125 dbus-x11 x11-utils alsa-utils \
2226 mesa-utils libgl1-mesa-dri \
23- && apt autoclean -y \
24- && apt autoremove -y \
27+ && apt-get autoclean -y \
28+ && apt-get autoremove -y \
2529 && rm -rf /var/lib/apt/lists/*
2630# install debs error if combine together
27- RUN apt update \
28- && apt install -y --no-install-recommends --allow-unauthenticated \
31+ RUN apt-get update \
32+ && apt-get install -y --no-install-recommends \
2933 xvfb x11vnc \
30- vim-tiny firefox ttf -ubuntu-font-family ttf-wqy-zenhei \
31- && apt autoclean -y \
32- && apt autoremove -y \
34+ vim-tiny firefox fonts -ubuntu \
35+ && apt-get autoclean -y \
36+ && apt-get autoremove -y \
3337 && rm -rf /var/lib/apt/lists/*
34-
35- RUN apt update \
36- && apt install -y gpg-agent \
38+ RUN apt-get update \
39+ && apt-get install -y --no-install-recommends \
40+ gpgconf gnupg gpg-agent \
3741 && curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
3842 && (dpkg -i ./google-chrome-stable_current_amd64.deb || apt-get install -fy) \
3943 && curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add \
4044 && rm google-chrome-stable_current_amd64.deb \
4145 && rm -rf /var/lib/apt/lists/*
4246
43- RUN apt update \
44- && apt install -y --no-install-recommends --allow-unauthenticated \
45- lxde gtk2-engines-murrine gnome-themes-standard gtk2-engines-pixbuf gtk2-engines-murrine arc-theme \
46- && apt autoclean -y \
47- && apt autoremove -y \
48- && rm -rf /var/lib/apt/lists/*
4947
5048
49+
50+ RUN apt-get update \
51+ && apt-get install -y --no-install-recommends \
52+ lightdm \
53+ && apt-get install -y \
54+ lxde \
55+ && apt-get install -y --no-install-recommends \
56+ gtk2-engines-murrine gnome-themes-standard gtk2-engines-pixbuf gtk2-engines-murrine arc-theme \
57+ && apt-get autoclean -y \
58+ && apt-get autoremove -y \
59+ && rm -rf /var/lib/apt/lists/*
5160# Additional packages require ~600MB
5261# libreoffice pinta language-pack-zh-hant language-pack-gnome-zh-hant firefox-locale-zh-hant libreoffice-l10n-zh-tw
5362
5463# tini to fix subreap
55- ARG TINI_VERSION=v0.18.0
56- ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /bin/tini
57- RUN chmod +x /bin/tini
64+ RUN apt-get update \
65+ && apt-get install -y --no-install-recommends tini \
66+ && apt-get autoclean -y \
67+ && apt-get autoremove -y \
68+ && rm -rf /var/lib/apt/lists/*
5869
5970# ffmpeg
60- RUN apt update \
61- && apt install -y --no-install-recommends --allow-unauthenticated \
71+ RUN apt-get update \
72+ && apt-get install -y --no-install-recommends \
6273 ffmpeg \
6374 && rm -rf /var/lib/apt/lists/* \
6475 && mkdir /usr/local/ffmpeg \
@@ -69,7 +80,7 @@ COPY rootfs/usr/local/lib/web/backend/requirements.txt /tmp/
6980RUN apt-get update \
7081 && dpkg-query -W -f='${Package}\n' > /tmp/a.txt \
7182 && apt-get install -y python3-pip python3-dev build-essential \
72- && pip3 install setuptools wheel && pip3 install -r /tmp/requirements.txt \
83+ && python3 -m pip install setuptools wheel && python3 -m pip install -r /tmp/requirements.txt \
7384 && ln -s /usr/bin/python3 /usr/local/bin/python \
7485 && dpkg-query -W -f='${Package}\n' > /tmp/b.txt \
7586 && apt-get remove -y `diff --changed-group-format='%>' --unchanged-group-format='' /tmp/a.txt /tmp/b.txt | xargs` \
@@ -82,17 +93,17 @@ RUN apt-get update \
8293################################################################################
8394# builder
8495################################################################################
85- FROM ubuntu:20.04 as builder
96+
97+ FROM ubuntu:jammy-20220531 as builder
8698
8799
88- RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
89100
90101
91102RUN apt-get update \
92103 && apt-get install -y --no-install-recommends curl ca-certificates gnupg patch
93104
94105# nodejs
95- RUN curl -sL https://deb.nodesource.com/setup_12 .x | bash - \
106+ RUN curl -sL https://deb.nodesource.com/setup_16 .x | bash - \
96107 && apt-get install -y nodejs
97108
98109# yarn
0 commit comments