-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Dockerfile.tcl
41 lines (34 loc) · 1.08 KB
/
Dockerfile.tcl
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
FROM ubuntu:20.04
# build a container with tcl modules for singularity-hpc
# docker build -f Dockerfile.tcl -t singularity-hpc .
LABEL MAINTAINER @vsoch
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get install -y build-essential \
gcc \
tcl-dev \
autoconf \
automake \
python3 \
python3-sphinx \
python3-dev \
python3-pip \
curl \
less \
wget
RUN wget -O- http://neuro.debian.net/lists/xenial.us-ca.full | tee /etc/apt/sources.list.d/neurodebian.sources.list && \
apt-key adv --recv-keys --keyserver hkp://pool.sks-keyservers.net:80 0xA5D32F012649A5A9 && \
apt-get update && \
apt-get install -y singularity-container
RUN curl -LJO https://github.com/cea-hpc/modules/releases/download/v4.7.0/modules-4.7.0.tar.gz && \
tar xfz modules-4.7.0.tar.gz && \
cd modules-4.7.0 && \
./configure && \
make && \
make install
RUN pip3 install ipython
WORKDIR /code
COPY . /code
RUN pip3 install -e .[all]
# If we don't run shpc through bash entrypoint, module commands not found
ENTRYPOINT ["/code/entrypoint.sh"]