-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-sregistry-cli
37 lines (34 loc) · 1.26 KB
/
Dockerfile-sregistry-cli
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
# Singularity & Singularity-Python 2.4
FROM conda/miniconda3
MAINTAINER Victor Sande <https://github.com/victorsndvg>
RUN apt-get update \
&& apt-get install -y \
wget curl git make uuid-dev libssl-dev libarchive-dev autoconf automake libtool \
tar gzip bash python e2fsprogs squashfs-tools \
vim nano emacs-nox \
&& cd /tmp \
&& VERSION=2.4.2 \
&& wget https://github.com/singularityware/singularity/releases/download/$VERSION/singularity-$VERSION.tar.gz \
&& tar xvf singularity-$VERSION.tar.gz \
&& cd singularity-$VERSION \
&& ./configure --prefix=/usr/local \
&& make \
&& make install \
&& cd /tmp \
&& rm -rf /tmp/singularity \
&& apt-get remove --purge -y wget curl git make autoconf automake libtool
RUN apt-get update \
&& apt-get install -y git \
&& cd /tmp \
&& VERSION=2.4.1 \
&& conda install -y numpy scikit-learn cython pandas \
&& git clone https://github.com/singularityware/sregistry-cli \
&& cd /tmp/sregistry-cli \
&& pip install setuptools \
&& pip install -r requirements.txt \
&& python setup.py sdist \
&& python setup.py install \
&& cd /tmp \
&& rm -rf /tmp/sregistry-cli \
&& apt-get autoremove -y \
&& apt-get remove --purge -y git