-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
47 lines (31 loc) · 1.24 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
45
46
47
#FROM frolvlad:alpine-miniconda3
FROM continuumio/miniconda3
COPY environment.yml .
RUN conda env create -f environment.yml
SHELL ["conda", "run", "-n", "noe", "/bin/bash", "-c"]
ARG conda_env=noe
ENV PATH /opt/conda/envs/$conda_env/bin:$PATH
ENV CONDA_DEFAULT_ENV $conda_env
# RUN git clone https://github.com/rinikerlab/mlddec.git
RUN apt-get update && apt-get install unzip
RUN wget https://github.com/rinikerlab/mlddec/archive/master.zip && unzip master.zip && rm master.zip
WORKDIR mlddec-master
RUN rm -r mlddec/data/epsilon_78 #keep space compact so delete some of the charging model file
#can delete package after install?
RUN pip install .
WORKDIR /
RUN wget https://github.com/rinikerlab/mdfptools/archive/master.zip && unzip master.zip && rm master.zip
WORKDIR mdfptools-master
RUN pip install .
RUN echo 'conda activate noe' >> ~/.bashrc
##################
ENV TINI_VERSION v0.6.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
RUN chmod +x /usr/bin/tini
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["jupyter", "notebook", "--port=13579", "--no-browser", "--ip=0.0.0.0", "--allow-root"]
#XXX need to switch to different branch??
COPY . /app/
WORKDIR /app/
RUN pip install -e .
WORKDIR /app/examples/