mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
Use Ninja instead of Make in the main Dockerfile for faster builds and install ninja-build in DockerfileDeps. Also, add a new Dockerfile for Ubuntu Noble.
20 lines
625 B
Docker
20 lines
625 B
Docker
FROM ghcr.io/savoirfairelinux/opendht/opendht-deps:latest
|
|
LABEL maintainer="Adrien Béraud <adrien.beraud@savoirfairelinux.com>"
|
|
LABEL org.opencontainers.image.source=https://github.com/savoirfairelinux/opendht
|
|
|
|
COPY . opendht
|
|
|
|
RUN cd opendht && mkdir build && cd build \
|
|
&& cmake -GNinja .. -DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DBUILD_TESTING=Off \
|
|
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=On \
|
|
-DOPENDHT_C=On \
|
|
-DOPENDHT_PEER_DISCOVERY=On \
|
|
-DOPENDHT_PYTHON=On \
|
|
-DOPENDHT_TOOLS=On \
|
|
-DOPENDHT_PROXY_SERVER=On \
|
|
-DOPENDHT_PROXY_CLIENT=On \
|
|
-DOPENDHT_SYSTEMD=On \
|
|
&& ninja && ninja install \
|
|
&& cd ../.. && rm -rf opendht
|