-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile.dev
46 lines (36 loc) · 1.18 KB
/
Dockerfile.dev
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
FROM condaforge/miniforge3
RUN apt-get --yes -qq update && \
apt-get --yes -qq upgrade && \
DEBIAN_FRONTEND=noninteractive \
apt-get --yes -qq install \
build-essential \
cmake \
g++ \
gcc \
git \
openmpi-bin \
zsh && \
apt-get --yes -qq clean && \
rm -rf /var/lib/apt/lists/*
SHELL ["/bin/bash", "-c"]
RUN conda init bash
RUN conda init zsh
RUN mkdir /home/psvWave
ADD . /home/psvWave
RUN conda create -n psvWave-dev python==3.9 && \
echo "conda activate psvWave-dev" >> $HOME/.zshrc && \
echo "conda activate psvWave-dev" >> $HOME/.bashrc
SHELL ["conda", "run", "-n", "psvWave-dev", "/bin/bash", "-c"]
# Dependencies for documentation building
RUN apt-get --yes -qq update \
&& apt-get --yes -qq upgrade \
&& DEBIAN_FRONTEND=noninteractive \
apt-get --yes -qq install \
pandoc \
doxygen \
&& apt-get --yes -qq clean \
&& rm -rf /var/lib/apt/lists/*
RUN cd /home/psvWave && \
pip install -v -e .[dev]
WORKDIR /home/psvWave/
CMD ["/bin/zsh" ]