mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-14 08:10:10 +00:00
Use the alpine base image and install the tools to compile tini manually. This removes the dependency on c-compile. Also use the git tree hash for the package hash while at it. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
15 lines
363 B
Makefile
15 lines
363 B
Makefile
.PHONY: tag push
|
|
default: push
|
|
|
|
IMAGE=tini
|
|
DEPS=Dockerfile
|
|
|
|
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
|
|
|
tag: $(DEPS)
|
|
docker build --no-cache --network=none -t linuxkit/$(IMAGE):$(HASH) .
|
|
|
|
push: tag
|
|
DOCKER_CONTENT_TRUST=1 docker pull linuxkit/$(IMAGE):$(HASH) || \
|
|
DOCKER_CONTENT_TRUST=1 docker push linuxkit/$(IMAGE):$(HASH)
|