From 7f06e223f789e86dc2fcdedda15145a892abb0aa Mon Sep 17 00:00:00 2001 From: Roman Gershman Date: Wed, 4 May 2022 15:55:03 +0300 Subject: [PATCH] Statically link boost into dragonfly --- CMakeLists.txt | 1 + tools/docker/Dockerfile.ubuntu-prod | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d7dae4fe..62aa38dcd 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,7 @@ set(CMAKE_CXX_STANDARD 17) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/helio/cmake" ${CMAKE_MODULE_PATH}) option(BUILD_SHARED_LIBS "Build shared libraries" OFF) +set(Boost_USE_STATIC_LIBS ON) include(third_party) include(internal) diff --git a/tools/docker/Dockerfile.ubuntu-prod b/tools/docker/Dockerfile.ubuntu-prod index 4bfdc581f..b2d07ca67 100644 --- a/tools/docker/Dockerfile.ubuntu-prod +++ b/tools/docker/Dockerfile.ubuntu-prod @@ -20,7 +20,7 @@ LABEL org.opencontainers.image.source https://github.com/romange/dragonfly ENV DEBIAN_FRONTEND=noninteractive RUN groupadd -r -g 999 dfly && useradd -r -g dfly -u 999 dfly -RUN apt update && apt install -y libunwind8 libboost-fiber1.71.0 libssl1.1 && \ +RUN apt update && apt install -y libunwind8 libssl1.1 && \ rm -rf /var/lib/apt/lists/* RUN mkdir /data && chown dfly:dfly /data