Cleanup docker build of nginx image (#4925)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-01-14 13:57:44 -03:00 committed by GitHub
parent c86e4e0d9a
commit 26f574dc27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 47 deletions

View file

@ -38,7 +38,11 @@ if [ ! -f "${ENV_FILE}" ]; then
fi
# build local terraform image to build nginx
docker build -t build-nginx-terraform $DIR/images/nginx
export DOCKER_CLI_EXPERIMENTAL=enabled
docker buildx build \
--no-cache \
--platform linux/amd64 \
--tag build-nginx-terraform $DIR/images/nginx
# build nginx and publish docker images to quay.io.
# this can take up to two hours.