Skip to content

Commit

Permalink
Merge pull request #63 from MHubAI/patch-models
Browse files Browse the repository at this point in the history
Cleanup git in base image
  • Loading branch information
LennyN95 authored Nov 14, 2023
2 parents 51aad4d + 01e5c95 commit 06b86f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/buildutils/import_mhub_model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fi

# perform a sparse checkout of the model definition folder
# (models/<model_name>) from the referenced repository and branch
git stash
git init
git fetch ${REPO_URL} ${REPO_BRANCH}
git merge FETCH_HEAD
git sparse-checkout set "models/${MODEL_NAME}"
3 changes: 2 additions & 1 deletion base/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ RUN pip3 install git+https://github.com/MHubAI/mhubio.git \
&& mv base/buildutils . \
&& chmod +x base/bin/* \
&& cp base/bin/* /usr/bin/ \
&& rm -r base
&& rm -r base \
&& rm -r .git

# Install DCMQI by pulling the latest release from GitHub (via GitHub API)
# Run everything in a single RUN command to avoid creating intermediate layers (and allowing environment variables to be used)
Expand Down

0 comments on commit 06b86f8

Please sign in to comment.