extract first port from Dockerfile and set config variable for use in deploy phase. closes #993
This commit is contained in:
1 parent
fafa33e40d
commit
2834ce1f1a
4 files changed
+16
-3
No files matched your search
@@ -34,6 +34,9 @@ case "$1" in
|
||||
;;
|
||||
|
||||
dockerfile)
|
||||
# extract first port from Dockerfile
|
||||
DOCKERFILE_PORT=$(grep EXPOSE Dockerfile | head -1 | awk '{ print $2 }')
|
||||
[[ -n "$DOCKERFILE_PORT" ]] && dokku config:set $APP DOKKU_DOCKERFILE_PORT=$DOCKERFILE_PORT
|
||||
# sticking with same pattern of building app image before pre-build for now.
|
||||
docker build -t "$IMAGE" .
|
||||
# buildstep pluginhooks don't necessarily make sense for dockerfiles. call the new breed!!!
|
||||
|
||||
Reference in new issue
Block a user