Skip to content

Commit b54dcf9

Browse files
author
Your Name
committed
ascend-base-notebook
1 parent 40e11f3 commit b54dcf9

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

images/ascend-base-notebook/Dockerfile

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ USER root
1515
# Install all OS dependencies for the Server that starts
1616
# but lacks all features (e.g., download as all possible file formats)
1717
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
1919
RUN apt-get update --yes && \
2020
# - `apt-get upgrade` is run to patch known vulnerabilities in system packages
2121
# as the Ubuntu base image is rebuilt too seldom sometimes (less than once a month)
@@ -39,13 +39,26 @@ RUN apt-get update --yes && \
3939
# - `tini` is installed as a helpful container entrypoint,
4040
# that reaps zombie processes and such of the actual executable we want to start
4141
# See https://github.com/krallin/tini#why-tini for details
42-
tini \
42+
# tini \
4343
wget && \
4444
apt-get clean && rm -rf /var/lib/apt/lists/* && \
4545
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
4646
echo "C.UTF-8 UTF-8" >> /etc/locale.gen && \
4747
locale-gen
4848

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+
4962
# Configure environment
5063
ENV CONDA_DIR=/opt/conda \
5164
SHELL=/bin/bash \

0 commit comments

Comments
 (0)