-
-
Notifications
You must be signed in to change notification settings - Fork 271
/
Dockerfile
62 lines (50 loc) · 2.13 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM centos:7
RUN yum install -y wget bzip2 ca-certificates \
libglib2.0-0 libxext6 libsm6 libxrender1 \
git mercurial subversion openssl-devel gcc
# Install Rust
ENV RUSTUP_HOME=/usr/local/rustup CARGO_HOME=/usr/local/cargo
ENV PATH $CARGO_HOME/bin:$PATH
RUN mkdir -p "$CARGO_HOME" && mkdir -p "$RUSTUP_HOME" && \
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable && \
chmod -R a=rwX $CARGO_HOME
RUN cargo --version
# Funny stuff !!!
RUN mkdir fun
# Install Anaconda & Python
RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \
wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-4.5.11-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh
ENV PATH /opt/conda/bin:$PATH
RUN conda update conda
ENV PATH /opt/conda/envs/python3.7/bin:$PATH
ENV PATH /opt/conda/envs/python3.8/bin:$PATH
ENV PATH /opt/conda/envs/python3.9/bin:$PATH
ENV PATH /opt/conda/envs/python3.10/bin:$PATH
ENV PATH /opt/conda/envs/python3.11/bin:$PATH
# python 3.7
RUN conda create -f -y -n python3.7 python=3.7
RUN ln -s /opt/conda/envs/python3.7/bin/python3.7 /usr/bin/python3.7
RUN source activate python3.7 && conda install -y pip
RUN python3.7 -m pip install poetry
# python 3.8
RUN conda create -f -y -n python3.8 python=3.8
RUN ln -s /opt/conda/envs/python3.8/bin/python3.8 /usr/bin/python3.8
RUN source activate python3.8 && conda install -y pip
RUN python3.8 -m pip install poetry
# python 3.9
RUN conda create -f -y -n python3.9 python=3.9
RUN ln -s /opt/conda/envs/python3.9/bin/python3.9 /usr/bin/python3.9
RUN source activate python3.9 && conda install -y pip
RUN python3.9 -m pip install poetry
# python 3.10
RUN conda create -f -y -n python3.10 python=3.10
RUN ln -s /opt/conda/envs/python3.10/bin/python3.10 /usr/bin/python3.10
RUN source activate python3.10 && conda install -y pip
RUN python3.10 -m pip install poetry
# python 3.11
RUN conda create -f -y -n python3.11 python=3.11
RUN ln -s /opt/conda/envs/python3.11/bin/python3.11 /usr/bin/python3.11
RUN source activate python3.11 && conda install -y pip
RUN python3.11 -m pip install poetry