Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pbansal
Test-Docker
Commits
b49d0d60
Unverified
Commit
b49d0d60
authored
Sep 17, 2019
by
Ian Sillitoe
Committed by
GitHub
Sep 17, 2019
Browse files
Merge pull request #2 from bienchen/master
Switched to using the original Git Repository when building container…
parents
56dc7ee7
5b69ccdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Docker/cathapi/Dockerfile
View file @
b49d0d60
...
...
@@ -35,15 +35,15 @@ ONBUILD RUN apt-get update && \
apt-get
install
-y
--no-install-recommends
\
git
&&
\
/bin/rm
-rf
/var/lib/apt/lists/
*
&&
\
/usr/bin/git clone https://github.com/
bienchen/cath-swissmodel-api
.git
\
/tmp/cath
-swissmodel-api
.git
&&
\
/usr/bin/git clone https://github.com/
CATH-SWISSMODEL/cathsm-server
.git
\
/tmp/cath
sm-server
.git
&&
\
if
test
-z
"
$CATHSMAPI_GITTAG
"
;
then
\
cd
/tmp/cath
-swissmodel-api
.git/cathapi
&&
\
cd
/tmp/cath
sm-server
.git/cathapi
&&
\
git checkout
$CATHSMAPI_GITTAG
&&
\
cd
/
;
\
fi
&&
\
/bin/mv /tmp/cath
-swissmodel-api.git/cathapi
$SRC_DIR
&&
\
/bin/rm
-rf
rm
/tmp/cath
-swissmodel-api
.git
&&
\
/bin/mv /tmp/cath
sm-server.git
$SRC_DIR
&&
\
/bin/rm
-rf
rm
/tmp/cath
sm-server
.git
&&
\
apt-get purge
-y
--auto-remove
git
FROM
build_${CATHSMAPI_CODEBASE}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment