forked from mosdef-hub/mbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (27 loc) · 982 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
26
27
28
29
30
31
32
33
34
35
36
37
ARG PY_VERSION=3.7
FROM continuumio/miniconda3:4.8.2-alpine AS builder
EXPOSE 8888
LABEL maintainer.name="mosdef-hub"\
maintainer.url="https://mosdef.org"
ENV PATH /opt/conda/bin:$PATH
USER root
ADD . /mbuild
WORKDIR /mbuild
RUN conda update conda -yq && \
conda config --set always_yes yes --set changeps1 no && \
conda config --add channels omnia && \
conda config --add channels conda-forge && \
conda config --add channels mosdef && \
. /opt/conda/etc/profile.d/conda.sh && \
conda create -n mbuild-docker python=$PY_VERSION nomkl --file requirements-dev.txt && \
conda activate mbuild-docker && \
python setup.py install && \
echo "source activate mbuild-docker" >> \
/home/anaconda/.profile && \
conda clean -afy && \
mkdir /home/anaconda/mbuild-notebooks && \
chown -R anaconda:anaconda /mbuild && \
chown -R anaconda:anaconda /opt && \
chown -R anaconda:anaconda /home/anaconda
WORKDIR /home/anaconda
CMD /bin/su anaconda -s /bin/sh -l