mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-25 07:52:44 +00:00
We only need the alpine-baselayout packe to run init. This also removes the sha256 import from alpine:edge. This also reduces the size of the init package by more than 50% to just 1.5MB. Also make the HUB org/registry build time configurable. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
16 lines
373 B
Makefile
16 lines
373 B
Makefile
.PHONY: tag push
|
|
default: push
|
|
|
|
ORG?=linuxkit
|
|
IMAGE=init
|
|
DEPS=Dockerfile init $(wildcard etc/*) $(wildcard etc/init.d/*)
|
|
|
|
HASH?=$(shell git ls-tree HEAD -- ../$(notdir $(CURDIR)) | awk '{print $$3}')
|
|
|
|
tag: $(DEPS)
|
|
docker build --no-cache --network=none -t $(ORG)/$(IMAGE):$(HASH) .
|
|
|
|
push: tag
|
|
docker pull $(ORG)/$(IMAGE):$(HASH) || \
|
|
docker push $(ORG)/$(IMAGE):$(HASH)
|