1
- # Built with arch: amd64 flavor: lxde image: ubuntu:20.04
1
+ # Built with arch: amd64 flavor: lxde image: ubuntu:jammy-20220531
2
2
#
3
3
################################################################################
4
4
# base system
5
5
################################################################################
6
6
7
- FROM ubuntu:20.04 as system
7
+ FROM ubuntu:jammy-20220531 as system
8
8
9
9
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/*
10
16
11
17
RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
12
18
13
-
14
19
# 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 \
20
24
supervisor nginx sudo net-tools zenity xz-utils \
21
25
dbus-x11 x11-utils alsa-utils \
22
26
mesa-utils libgl1-mesa-dri \
23
- && apt autoclean -y \
24
- && apt autoremove -y \
27
+ && apt-get autoclean -y \
28
+ && apt-get autoremove -y \
25
29
&& rm -rf /var/lib/apt/lists/*
26
30
# 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 \
29
33
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 \
33
37
&& 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 \
37
41
&& curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
38
42
&& (dpkg -i ./google-chrome-stable_current_amd64.deb || apt-get install -fy) \
39
43
&& curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add \
40
44
&& rm google-chrome-stable_current_amd64.deb \
41
45
&& rm -rf /var/lib/apt/lists/*
42
46
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/*
49
47
50
48
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/*
51
60
# Additional packages require ~600MB
52
61
# libreoffice pinta language-pack-zh-hant language-pack-gnome-zh-hant firefox-locale-zh-hant libreoffice-l10n-zh-tw
53
62
54
63
# 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/*
58
69
59
70
# 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 \
62
73
ffmpeg \
63
74
&& rm -rf /var/lib/apt/lists/* \
64
75
&& mkdir /usr/local/ffmpeg \
@@ -69,7 +80,7 @@ COPY rootfs/usr/local/lib/web/backend/requirements.txt /tmp/
69
80
RUN apt-get update \
70
81
&& dpkg-query -W -f='${Package}\n' > /tmp/a.txt \
71
82
&& 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 \
73
84
&& ln -s /usr/bin/python3 /usr/local/bin/python \
74
85
&& dpkg-query -W -f='${Package}\n' > /tmp/b.txt \
75
86
&& 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 \
82
93
################################################################################
83
94
# builder
84
95
################################################################################
85
- FROM ubuntu:20.04 as builder
96
+
97
+ FROM ubuntu:jammy-20220531 as builder
86
98
87
99
88
- RUN sed -i 's#http://archive.ubuntu.com/ubuntu/#mirror://mirrors.ubuntu.com/mirrors.txt#' /etc/apt/sources.list;
89
100
90
101
91
102
RUN apt-get update \
92
103
&& apt-get install -y --no-install-recommends curl ca-certificates gnupg patch
93
104
94
105
# 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 - \
96
107
&& apt-get install -y nodejs
97
108
98
109
# yarn
0 commit comments