forked from lwa-project/bifrost
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.cpu
More file actions
35 lines (26 loc) · 721 Bytes
/
Dockerfile.cpu
File metadata and controls
35 lines (26 loc) · 721 Bytes
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
FROM ledatelescope/bifrost:cpu-base
MAINTAINER Ben Barsdell <benbarsdell@gmail.com>
ARG DEBIAN_FRONTEND=noninteractive
ENV TERM xterm
# Get dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
python-pip \
pylint \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Update ctypesgen
RUN pip --no-cache-dir install \
git+https://github.com/olsonse/ctypesgen.git@9bd2d249aa4011c6383a10890ec6f203d7b7990f
# Build the library
WORKDIR /bifrost
COPY . .
RUN make clean && \
make -j NOCUDA=1 && \
make doc && \
make install
ENV LD_LIBRARY_PATH /usr/local/lib:${LD_LIBRARY_PATH}
# IPython
EXPOSE 8888
WORKDIR /workspace
RUN ["/bin/bash"]