-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
42 lines (31 loc) · 1.02 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
FROM dhna/mpi4py:latest
ENV TZ=US/Pacific
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update -y && \
apt-get upgrade -y
RUN apt install -y build-essential
RUN apt install -y python3-dev
RUN apt install -y nginx
RUN apt install -y systemctl
RUN apt install -y htop
RUN apt install -y vim
RUN apt install -y wget
RUN apt install -y git-lfs
RUN apt-get -o Dpkg::Options::='--force-confmiss' install --reinstall -y netbase
RUN python -m pip install --upgrade pip
COPY requirements.txt ./
RUN pip install -r requirements.txt
COPY hm2012_hr.h5.gz ./
RUN gzip -d hm2012_hr.h5.gz
RUN mkdir ~/.trident
COPY scripts/config.tri ~/.trident
RUN mv hm2012_hr.h5 ~/.trident
COPY scripts/default /etc/nginx/sites-enabled/
COPY scripts/cosmovis.service /etc/systemd/system/
WORKDIR /cv-docker
# RUN git-lfs clone https://github.com/CreativeCodingLab/CosmoVis.git -b dev
RUN systemctl restart nginx
RUN systemctl daemon-reload
RUN systemctl enable cosmovis
EXPOSE 5000
CMD [ "python", "./cosmo-serv.py" ]