[ADF-4158] improved Docker image security (#4371)

* improved Docker image security

* remove layer duplication

* update scripts
This commit is contained in:
Denys Vuika
2019-03-04 11:18:32 +00:00
committed by Eugenio Romano
parent bbf1f20439
commit d6f856f1c5
4 changed files with 105 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ cd $DIR/..
echo "====== PUBLISH DOCKER IMAGE TAG pr $NAME_PR ====="
docker build -t $DOCKER_REPO/adf/demo-shell:$NAME_PR .
docker build -t $DOCKER_REPO/adf/demo-shell:$NAME_PR --build-arg BUILD_NUMBER=$NAME_PR .
echo "====== LOGIN ====="
docker login http://$DOCKER_REPO -p $PASSWORD_DOCKER -u $USERNAME_DOCKER