-
Notifications
You must be signed in to change notification settings - Fork 68
/
Dockerfile.cpu
49 lines (42 loc) · 1.25 KB
/
Dockerfile.cpu
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 python:3.9
# Prevent interactive dialogs from halting the build
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update -y && apt install -y \
build-essential \
libcairo2-dev \
libhdf5-dev \
pkg-config \
python3-dev \
python3-openssl && \
apt clean && \
rm -rf /var/lib/apt/lists/*
COPY ./pip/cpu_requirements.txt ./pip/cpu_requirements.txt
RUN pip install -U pip && \
pip install --no-cache-dir \
--trusted-host pypi.python.org \
--trusted-host files.pythonhosted.org \
--trusted-host pypi.org \
--trusted-host data.dgl.ai \
--trusted-host download.pytorch.org \
-r ./pip/cpu_requirements.txt
COPY ./pip/dev_requirements.txt ./pip/dev_requirements.txt
RUN pip install -U pip && \
pip install --no-cache-dir \
--trusted-host pypi.python.org \
--trusted-host files.pythonhosted.org \
--trusted-host pypi.org \
--trusted-host data.dgl.ai \
--trusted-host download.pytorch.org \
-r ./pip/dev_requirements.txt
COPY setup.py .
COPY VERSION .
COPY build.sh .
COPY ./atomsci atomsci/
# Install atomsci-ampl
RUN ./build.sh
RUN pip install -e .
# Clean up
RUN apt purge -y build-essential python3-dev && \
apt autoremove -y && \
rm -rf /var/lib/apt/lists/*
RUN rm -rf /root/.cache/pip