From f42c2da66fe177cc2e386cc06ee48475127a9091 Mon Sep 17 00:00:00 2001 From: MintoDA1 <51412913+MintoDA1@users.noreply.github.com> Date: Fri, 4 Aug 2023 16:58:26 -0400 Subject: [PATCH] Added new target that allows one to export the static library file to the host after compiling it --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 92218b80c..e390ae5ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -130,6 +130,10 @@ ENTRYPOINT ["/usr/local/bin/swiftest_driver"] FROM scratch AS export_driver COPY --from=build_driver /usr/local/bin/swiftest_driver / +# This build target exports the static library to the host +FROM scratch as export_library +COPY --from=build_driver /usr/local/lib/libswiftest.a / + # This build target creates a container with a conda environment with all dependencies needed to run the Python front end and # analysis tools FROM continuumio/miniconda3 as python