-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
44 lines (32 loc) · 1.18 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
FROM ubuntu
LABEL Description="CosmoStat"
SHELL ["/bin/bash", "-c"]
WORKDIR /workdir
ARG DEBIAN_FRONTEND=noninteractive
ARG CC=gcc-9
ARG CXX=g++-9
RUN apt-get update && \
apt-get install -y autoconf automake libtool pkg-config && \
apt-get install -y gcc-9 g++-9 && \
apt-get install -y cmake git wget && \
apt-get install -y libarmadillo-dev && \
apt-get install -y libcfitsio-dev && \
apt-get install -y libfftw3-dev && \
apt-get install -y libgl1 && \
apt-get install -y libgsl-dev && \
apt-get install -y libsharp-dev && \
apt-get install -y libhealpix-cxx-dev && \
apt-get install -y healpy-data && \
apt-get install -y python3 python3-pip python3-venv && \
apt-get clean
ENV HEALPIX=/usr/share/healpy
RUN python3 -m venv /venv
RUN source /venv/bin/activate && \
pip install --upgrade pip
RUN source /venv/bin/activate && \
pip install jupyter
COPY . /home
RUN source /venv/bin/activate && \
pip install /home
RUN echo "source /venv/bin/activate" >> ~/.bashrc
RUN echo -e '#!/bin/bash\nsource /venv/bin/activate\njupyter notebook --port=8888 --no-browser --ip=0.0.0.0 --allow-root' > /usr/bin/notebook && chmod +x /usr/bin/notebook