Zahary Karadjov e9754cf69c More improvements to the docker build scripts
* Make the build deterministic by pinning it to a particular revision
* Add curl as a run-time dependency
* Use the improved Docker practices for the Nimbus build as well
2019-03-23 13:24:48 +02:00

16 lines
355 B
Makefile

# These default settings can be overriden by exporting env variables
GIT_REVISION ?= $(git rev-parse HEAD)
IMAGE_TAG ?= nimbus_latest
IMAGE_NAME ?= statusteam/nimbus_beacon_node:$(IMAGE_TAG)
build: $(NIX_INSTALL)
docker build \
--build-arg="GIT_REVISION=$(GIT_REVISION)" \
-t $(IMAGE_NAME) .
push: build
docker push $(IMAGE_NAME)