mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-13 18:27:08 +00:00
Directly install the required packages from the Alpine base image to compile the toybox-media package. Also use the git tree hash for the package hash while at it. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
15 lines
356 B
Makefile
15 lines
356 B
Makefile
.PHONY: tag push
|
|
default: push
|
|
|
|
IMAGE=toybox-media
|
|
DEPS=Dockerfile
|
|
|
|
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
|
|
|
tag: $(DEPS)
|
|
docker build --no-cache -t linuxkit/$(IMAGE):$(HASH) .
|
|
|
|
push: tag
|
|
DOCKER_CONTENT_TRUST=1 docker pull linuxkit/$(IMAGE):$(HASH) || \
|
|
DOCKER_CONTENT_TRUST=1 docker push linuxkit/$(IMAGE):$(HASH)
|