-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
58 lines (51 loc) · 969 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM ubuntu:22.04
# FROM continuumio/miniconda3:latest
# OPTIONS
ARG NUM_THREADS="8"
RUN apt -y update \
&& apt -y upgrade
# Install required/recommended programs
RUN apt -y install --no-install-recommends \
wget \
ssh \
git \
vim \
nano \
perl \
black \
clang-format \
clang-tidy \
less
RUN apt -y install --no-install-recommends \
cmake \
protobuf-compiler \
automake \
autoconf \
libtool \
nasm \
yasm
RUN apt -y install --no-install-recommends \
wget \
git \
ca-certificates \
make \
g++ \
mpi-default-dev \
libboost-dev \
libboost-program-options-dev \
libboost-filesystem-dev \
libboost-date-time-dev \
libboost-iostreams-dev
# Copy repo
WORKDIR /app
COPY . /app
# Install larch
WORKDIR /app
RUN rm -rf /app/build
WORKDIR /app/build
RUN cmake -DCMAKE_BUILD_TYPE=Debug ..
RUN make -j${NUM_THREADS}
# Working directory
WORKDIR /data
# Start a bash shell when the container launches
CMD ["/bin/bash"]