Skip to content
This repository was archived by the owner on Mar 23, 2021. It is now read-only.

Commit 5c56cba

Browse files
committed
feat(dockerfile): 新增Miniconda Dockerfile
1 parent b63140d commit 5c56cba

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

dockerfiles/miniconda/Dockerfile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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" ]

0 commit comments

Comments
 (0)