-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
25 lines (18 loc) · 811 Bytes
/
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
FROM continuumio/miniconda3
ARG UID=1001
COPY requirements.txt /opt/app/requirements.txt
COPY . markovmodels
WORKDIR /markovmodels
RUN useradd --uid ${UID} --create-home toto_user
RUN apt-get update && apt-get upgrade -y \
&& apt-get install git graphviz graphviz-dev gcc bash build-essential cmake gfortran -y \
&& conda upgrade -n base -c defaults conda \
&& apt-get install texlive-latex-extra texlive-fonts-recommended dvipng cm-super -y \
&& chown -R toto_user . \
&& conda env create --prefix /envs/markovmodels -f environment.yml \
&& mkdir /markovmodels/output \
&& conda run -p /envs/markovmodels pip install . \
&& chown -R toto_user /envs
USER toto_user
ENTRYPOINT ["conda", "run", "--no-capture-output", "-p", "/envs/markovmodels"]
CMD ["python", "--version"]