forked from telegraphic/bifrost-2021
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.gpu
52 lines (43 loc) · 1.03 KB
/
Dockerfile.gpu
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
50
51
52
FROM nvidia/cuda:10.2-devel-ubuntu18.04
MAINTAINER Ben Barsdell <benbarsdell@gmail.com>
ARG DEBIAN_FRONTEND=noninteractive
# Get dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
git \
pkg-config \
software-properties-common \
python \
python-dev \
python-pip \
pylint \
doxygen \
exuberant-ctags \
nano \
vim \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN pip --no-cache-dir install \
setuptools \
numpy \
matplotlib \
contextlib2 \
simplejson \
pint \
git+https://github.com/olsonse/ctypesgen.git@9bd2d249aa4011c6383a10890ec6f203d7b7990f \
graphviz
ENV TERM xterm
# Build the library
WORKDIR /bifrost
COPY . .
RUN make clean && \
make -j && \
make doc && \
make install
ENV LD_LIBRARY_PATH /usr/local/lib:${LD_LIBRARY_PATH}
# IPython
EXPOSE 8888
WORKDIR /workspace
RUN ["/bin/bash"]