From abaf2ea19f6ef4e569d0277ce982a2a0b073f270 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Sat, 25 May 2024 16:45:54 -0500 Subject: [PATCH] chore: Speed up pyhf CLI API execution for Docker users (#2486) * The first ever run of the CLI API incurs some overhead so do that during the build instead of making the user wait. --- docker/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 4e3da76cd5..47ff491ea6 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -61,4 +61,8 @@ ENV LANG=C.UTF-8 ENV PATH=${HOME}/.local/bin:${PATH} +# The first ever run of the CLI API incurs some overhead so do that during the +# build instead of making the user wait +RUN pyhf --version + ENTRYPOINT ["/usr/local/venv/bin/pyhf"]