Skip to content

Commit

Permalink
chore: Speed up pyhf CLI API execution for Docker users (#2486)
Browse files Browse the repository at this point in the history
* The first ever run of the CLI API incurs some overhead so do that during the
build instead of making the user wait.
  • Loading branch information
matthewfeickert committed May 25, 2024
1 parent f4eb73f commit abaf2ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit abaf2ea

Please sign in to comment.