@@ -15,7 +15,7 @@ USER root
15
15
# Install all OS dependencies for the Server that starts
16
16
# but lacks all features (e.g., download as all possible file formats)
17
17
ENV DEBIAN_FRONTEND noninteractive
18
- RUN echo "deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal main universe" >> /etc/apt/sources.list
18
+ # RUN echo "deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal main universe" >> /etc/apt/sources.list
19
19
RUN apt-get update --yes && \
20
20
# - `apt-get upgrade` is run to patch known vulnerabilities in system packages
21
21
# as the Ubuntu base image is rebuilt too seldom sometimes (less than once a month)
@@ -39,13 +39,26 @@ RUN apt-get update --yes && \
39
39
# - `tini` is installed as a helpful container entrypoint,
40
40
# that reaps zombie processes and such of the actual executable we want to start
41
41
# See https://github.com/krallin/tini#why-tini for details
42
- tini \
42
+ # tini \
43
43
wget && \
44
44
apt-get clean && rm -rf /var/lib/apt/lists/* && \
45
45
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
46
46
echo "C.UTF-8 UTF-8" >> /etc/locale.gen && \
47
47
locale-gen
48
48
49
+ # Add Tini
50
+ ENV TINI_VERSION v0.18.0
51
+ # ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-arm64 /usr/bin/tini
52
+ # RUN chmod +x /usr/bin/tini
53
+ RUN if [ $(arch) = "aarch64" ];then \
54
+ wget https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-arm64; \
55
+ mv tini-arm64 /usr/bin/tini; \
56
+ else \
57
+ wget https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini; \
58
+ mv tini /usr/bin/tini; \
59
+ fi && \
60
+ chmod +x /usr/bin/tini
61
+
49
62
# Configure environment
50
63
ENV CONDA_DIR=/opt/conda \
51
64
SHELL=/bin/bash \
0 commit comments