mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 08:25:36 +00:00
Run apt-get clean and rm -rf /var/lib/apt/lists as part of creating the supervisor-base to reduce the layer size.
This commit is contained in:
parent
2a28046533
commit
b7df26b9f6
2
Makefile
2
Makefile
@ -31,7 +31,7 @@ ifneq ($(SUPERVISOR_BASE_PRESENT) , )
|
||||
@echo "Using existing supervisor base from resin/supervisor-base:$(BUILDSTEP_VERSION)"
|
||||
else
|
||||
docker rm -f build-supervisor-base 2> /dev/null || true
|
||||
docker run --name build-supervisor-base $(BUILDSTEP_REGISTRY)/$(BUILDSTEP_REPO):$(BUILDSTEP_VERSION) bash -c "apt-get -q update && apt-get install -qqy openvpn libsqlite3-dev socat"
|
||||
docker run --name build-supervisor-base $(BUILDSTEP_REGISTRY)/$(BUILDSTEP_REPO):$(BUILDSTEP_VERSION) bash -c "apt-get -q update && apt-get install -qqy openvpn libsqlite3-dev socat && apt-get clean && rm -rf /var/lib/apt/lists/"
|
||||
docker commit build-supervisor-base resin/supervisor-base:$(BUILDSTEP_VERSION)
|
||||
endif
|
||||
docker tag resin/supervisor-base:$(BUILDSTEP_VERSION) resin/supervisor-base:latest
|
||||
|
Loading…
x
Reference in New Issue
Block a user