This repository has been archived by the owner on May 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from iamamutt/main
fix(template): 🚑 dockerfile no bash and add build-arg
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## docker build --build-arg JHUB_VER=1.4.2 --build-arg PY_VER=3.8 --build-arg DIST=debian --build-arg DEPLOY_KEY=wt-ephys-no-curation-deploy.pem --build-arg REPO_OWNER=dj-sciops --build-arg REPO_NAME=wt-ephys-no-curation -f codebook.Dockerfile -t registry.vathes.com/sciops/codebook-wt-ephys-no-curation:v0.0.0 . | ||
## docker build --build-arg JHUB_VER=1.4.2 --build-arg PY_VER=3.8 --build-arg DIST=debian --build-arg CODEBOOK_BASE_HASH=a7ee3ce --build-arg DEPLOY_KEY=wt-ephys-no-curation-deploy.pem --build-arg REPO_OWNER=dj-sciops --build-arg REPO_NAME=wt-ephys-no-curation -f codebook.Dockerfile -t registry.vathes.com/sciops/codebook-wt-ephys-no-curation:v0.0.0 . | ||
|
||
## Single Stage | ||
ARG JHUB_VER | ||
|
@@ -20,7 +20,7 @@ RUN ssh-keyscan -t ed25519 github.com >> $HOME/.ssh/known_hosts && \ | |
git clone [email protected]:${REPO_OWNER}/${REPO_NAME}.git && \ | ||
pip install ./${REPO_NAME} && \ | ||
cp -r ./${REPO_NAME}/notebooks/ /home/ && \ | ||
[[ -d ./${REPO_NAME}/images ]] && cp -r ./${REPO_NAME}/images/ /home/notebooks/ && \ | ||
cp -r ./${REPO_NAME}/images/ /home/notebooks/ || true && \ | ||
cp ./${REPO_NAME}/README.md /home/notebooks/ && \ | ||
rm -rf /tmp/${REPO_NAME} && \ | ||
rm -rf $HOME/.ssh/ | ||
|