-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
36 lines (31 loc) · 1.25 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM debian:buster-slim
ARG BUILD_DATE
ARG MINICONDA_VERSION=3
ARG MINICONDA_RELEASE=latest
ARG PYTHON_VERSION
LABEL org.label-schema.name="Continuum Miniconda $PYTHON_VERSION" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.version=$MINICONDA_VERSION-$MINICONDA_RELEASE
ENV PATH="/opt/miniconda${MINICONDA_VERSION}/bin:${PATH}"
RUN set -x && \
apt-get update && \
apt-get install -y curl bzip2 && \
curl -s --url "https://repo.anaconda.com/miniconda/Miniconda${MINICONDA_VERSION}-${MINICONDA_RELEASE}-Linux-x86_64.sh" --output /tmp/miniconda.sh && \
bash /tmp/miniconda.sh -b -f -p "/opt/miniconda${MINICONDA_VERSION}" && \
rm /tmp/miniconda.sh && \
apt-get purge -y --auto-remove curl bzip2 && \
apt-get clean && \
conda config --set auto_update_conda true && \
if [ "$MINICONDA_VERSION" = "2" ]; then\
conda install -y futures;\
fi && \
if [ "$MINICONDA_RELEASE" = "latest" ]; then\
conda update conda -y --force;\
fi && \
if [ -n "$PYTHON_VERSION" ]; then\
conda install python=$PYTHON_VERSION -y --force;\
fi && \
conda clean -tip && \
echo "PATH=/opt/miniconda${MINICONDA_VERSION}/bin:\${PATH}" > /etc/profile.d/miniconda.sh
ENTRYPOINT ["conda"]
CMD ["--help"]