From 559db5f314f7f8dec209834924699d70fefaa7ae Mon Sep 17 00:00:00 2001 From: Andras Fekete Date: Wed, 22 Feb 2023 09:55:52 -0500 Subject: [PATCH] Build liboqs for distribution This makes it possible to use the library on same architecture but different processor type. --- Docker/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Docker/Dockerfile b/Docker/Dockerfile index f3faaaf6a..5b3e0fe50 100644 --- a/Docker/Dockerfile +++ b/Docker/Dockerfile @@ -15,6 +15,7 @@ ARG GID=1000 RUN groupadd -f -g ${GID} docker && ( getent passwd ${UID} || useradd -ms /bin/bash ${USER} -u ${UID} -g ${GID} ) # install liboqs -RUN git clone --single-branch https://github.com/open-quantum-safe/liboqs.git && cd liboqs && git checkout af76ca3b1f2fbc1f4f0967595f3bb07692fb3d82 && mkdir build && cd build && cmake -DOQS_USE_OPENSSL=0 .. && make -j8 all && make install && cd ../.. && rm -rf liboqs +RUN git clone --single-branch https://github.com/open-quantum-safe/liboqs.git && cd liboqs && git checkout af76ca3b1f2fbc1f4f0967595f3bb07692fb3d82 \ + && mkdir build && cd build && cmake -DOQS_DIST_BUILD=ON -DOQS_USE_OPENSSL=0 .. && make -j8 all && make install && cd ../.. && rm -rf liboqs USER ${UID}:${GID} \ No newline at end of file