Squash is optional
TAG?=latest
+SQUASH?=false
local-fmt:
gofmt -l -d $(find . -type f -name '*.go' -not -path "./vendor/*")
@@ -12,10 +13,10 @@ build-armhf:
docker build -t functions/faas-netesd:$(TAG)-armhf . -f Dockerfile.armhf
build-legacy:
- docker build --build-arg http_proxy="${http_proxy}" --build-arg https_proxy="${https_proxy}" -t functions/faas-netesd:$(TAG) . -f Dockerfile.non-multi --squash
+ docker build --build-arg http_proxy="${http_proxy}" --build-arg https_proxy="${https_proxy}" -t functions/faas-netesd:$(TAG) . -f Dockerfile.non-multi --squash=${SQUASH}
build:
- docker build --build-arg http_proxy="${http_proxy}" --build-arg https_proxy="${https_proxy}" -t functions/faas-netesd:$(TAG) . --squash
+ docker build --build-arg http_proxy="${http_proxy}" --build-arg https_proxy="${https_proxy}" -t functions/faas-netesd:$(TAG) . --squash=${SQUASH}
push:
docker push alexellis2/faas-netes:$(TAG)
