forked from ad-freiburg/pfaedle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (21 loc) · 831 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
FROM ubuntu:jammy AS builder
WORKDIR /app
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends clang cmake git make ca-certificates wget
RUN mkdir /usr/local/share/ca-certificates/cacert.org && \
wget -P /usr/local/share/ca-certificates/cacert.org http://www.cacert.org/certs/root.crt http://www.cacert.org/certs/class3.crt && \
update-ca-certificates && \
git config --global http.sslCAinfo /etc/ssl/certs/ca-certificates.crt
ADD . /app
RUN mkdir build && \
cd build && \
cmake .. && \
make -j && \
pwd && \
make install
FROM ubuntu:jammy
RUN apt-get update && \
apt-get install -y libgomp1 libbz2-dev && \
rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/etc/pfaedle /usr/local/etc/pfaedle
COPY --from=builder /usr/local/bin/pfaedle /usr/local/bin/pfaedle