This repository was archived by the owner on Mar 23, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ FROM zjzstu/ubuntu:18.04
2
+ LABEL maintainer "zhujian <zjzstu@github.com>"
3
+
4
+ ENV PATH /opt/conda/bin:$PATH
5
+
6
+ RUN set -eux && \
7
+ apt-get update --fix-missing && \
8
+ apt-get install -y wget bzip2 ca-certificates curl git gosu && \
9
+ apt-get clean && \
10
+ rm -rf /var/lib/apt/lists/*
11
+
12
+ # 指定用户名
13
+ ENV USER zj
14
+ RUN set -eux && \
15
+ useradd -s /bin/bash -m ${USER}
16
+
17
+ USER ${USER}
18
+
19
+ RUN set -eux && \
20
+ echo ~ && \
21
+ wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py38_4.8.2-Linux-x86_64.sh -O ~/miniconda.sh && \
22
+ /bin/bash ~/miniconda.sh -b -p ~/conda && \
23
+ rm ~/miniconda.sh && \
24
+ ~/conda/bin/conda clean -tipsy && \
25
+ echo ". /home/${USER}/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
26
+ echo "conda activate base" >> ~/.bashrc
27
+
28
+ USER root
29
+
30
+ ENV TINI_VERSION v0.16.1
31
+ ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
32
+ RUN chmod +x /usr/bin/tini
33
+
34
+ ENTRYPOINT [ "/usr/bin/tini" , "--" ]
35
+ CMD [ "/bin/bash" ]
You can’t perform that action at this time.
0 commit comments