From fc21b46e3ff9e424e1033841b77962e5cd02a418 Mon Sep 17 00:00:00 2001 From: Dmitry Dunaev Date: Fri, 5 Aug 2022 17:29:15 +0300 Subject: [PATCH] [WIFI-10388] Fix: image building Signed-off-by: Dmitry Dunaev --- Dockerfile | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 96d90fd..736ebae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,14 +4,13 @@ RUN apk add --update --no-cache \ openssl openssh \ ncurses-libs \ bash util-linux coreutils curl libcurl \ - make cmake gcc g++ libstdc++ libgcc git zlib-dev \ + make cmake gcc g++ libstdc++ libgcc git zlib-dev nlohmann-json \ openssl-dev boost-dev curl-dev unixodbc-dev postgresql-dev mariadb-dev \ apache2-utils yaml-dev apr-util-dev \ librdkafka-dev RUN git clone https://github.com/stephb9959/poco /poco RUN git clone https://github.com/stephb9959/cppkafka /cppkafka -RUN git clone https://github.com/nlohmann/json /json RUN git clone https://github.com/pboettch/json-schema-validator /json-schema-validator RUN git clone --recurse-submodules https://github.com/aws/aws-sdk-cpp /aws-sdk-cpp @@ -39,13 +38,6 @@ RUN cmake .. RUN cmake --build . --config Release -j8 RUN cmake --build . --target install -WORKDIR /json -RUN mkdir cmake-build -WORKDIR cmake-build -RUN cmake .. -RUN make -RUN make install - WORKDIR /json-schema-validator RUN mkdir cmake-build WORKDIR cmake-build @@ -63,7 +55,9 @@ ADD .git /owsec/.git WORKDIR /owsec RUN mkdir cmake-build WORKDIR /owsec/cmake-build -RUN cmake .. +RUN cmake .. \ + -Dcrypto_LIBRARY=/usr/lib/libcrypto.so \ + -DBUILD_SHARED_LIBS=ON RUN cmake --build . --config Release -j8 FROM alpine