-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile
49 lines (30 loc) · 1.01 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
48
49
FROM tensorflow/tensorflow:latest-gpu
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR "/home"
RUN apt update
RUN apt upgrade -y
RUN pip install gym
RUN pip install keras
RUN apt install -y build-essential \
gfortran \
python \
python-dev \
python-numpy \
python-scipy \
python-matplotlib \
python-pip \
subversion \
git \
swig
RUN git clone https://github.com/bumps/bumps.git
RUN pip install ./bumps
RUN git clone https://github.com/scattering/crystal-ac-ml.git
RUN git clone https://github.com/scattering/pycrysfml.git
WORKDIR "/home/pycrysfml"
RUN ./build.sh
WORKDIR "/home/crystal-ac-ml"
RUN cp /home/crystal-ac-ml/sxtal_model.py /home/pycrysfml/hklgen/
RUN cp /home/crystal-ac-ml/prnio-optimized.cfl /home/pycrysfml/hklgen/examples/sxtal/prnio.cfl
RUN cp /home/crystal-ac-ml/__init__.py /usr/local/lib/python2.7/dist-packages/gym/envs/
RUN cp /home/crystal-ac-ml/hkl.py /usr/local/lib/python2.7/dist-packages/gym/envs/
CMD /bin/bash