-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
55 lines (47 loc) · 1.08 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
50
51
52
53
54
55
FROM ubuntu:22.04
WORKDIR /panmap
ARG DEBIAN_FRONTEND=noninteractive
ARG CPUS=8
RUN apt-get update --allow-insecure-repositories
RUN apt-get install -y \
build-essential \
wget \
curl \
ninja-build \
libhtscodecs-dev \
libncurses5-dev \
libbz2-dev \
zlib1g-dev \
libncursesw5-dev \
liblzma-dev \
libboost-all-dev \
cmake \
libssl-dev \
unzip \
zip \
make \
git \
pkg-config \
coreutils \
autotools-dev \
lzma \
libtool \
flex \
bison \
automake \
autoconf \
libprotobuf-dev \
protobuf-compiler \
libeigen3-dev \
libomp-dev \
libdeflate-dev
COPY ./*.* .
COPY ./src ./src
COPY ./cmake ./cmake
COPY ./dev/examples ./dev/examples
COPY ./dev/simulation_testing ./dev/simulation_testing
# ENV LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:$LD_LIBRARY_PATH
ENV CMAKE_BUILD_PARALLEL_LEVEL=${CPUS}
RUN mkdir build && cd build && cmake -DOPTION_BUILD_SIMULATE=ON .. && cmake --build . --parallel && cmake --install .
RUN chmod +x /usr/local/bin/*
CMD ["/usr/local/bin/panmap", "-h"]