forked from ad-freiburg/qlever-petrimaps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (32 loc) · 826 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
FROM ubuntu:24.04 AS builder
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install --no-install-recommends -y\
ca-certificates \
make \
cmake \
xxd \
# careful, OpenSSL is not thread safe, you MUST use GnuTLS
libcurl4-gnutls-dev \
default-jre \
libpng-dev \
libomp-dev \
g++
COPY CMakeLists.txt /
ADD cmake /cmake
ADD src /src
ADD web /web
RUN mkdir build && cd build && cmake .. && make -j8
FROM ubuntu:24.04 AS runtime
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /
RUN apt update &&\
apt install -y --no-install-recommends \
ca-certificates \
xxd \
libgomp1 \
libpng-dev \
libcurl4-gnutls-dev &&\
rm -rf /var/lib/apt/lists/*
COPY --from=builder /build/petrimaps /petrimaps
ENTRYPOINT ["/petrimaps"]