Some Dockerfiles will have CRLF line terminators which will prevent us

from parsing EXPOSE directives.
This commit is contained in:
Jan Szumiec
2021-04-15 21:28:46 +02:00
parent a23a7c4488
commit 4af837b987

View File

@@ -20,6 +20,7 @@ trigger-builder-dockerfile-builder-build() {
pushd "$SOURCECODE_WORK_DIR" &>/dev/null
# extract first port from Dockerfile
dos2unix Dockerfile
local DOCKERFILE_PORTS=$(get_dockerfile_exposed_ports Dockerfile)
[[ -n "$DOCKERFILE_PORTS" ]] && config_set --no-restart "$APP" DOKKU_DOCKERFILE_PORTS="$DOCKERFILE_PORTS"
plugn trigger pre-build-dockerfile "$APP"