mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-11 23:42:54 +00:00
Use Dockerfile instead of the tmp
This commit is contained in:
parent
dba752f6b3
commit
b80861f2ed
8
Makefile
8
Makefile
@ -50,10 +50,10 @@ endif
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
supervisor: supervisor-base
|
supervisor: supervisor-base
|
||||||
cp Dockerfile.$(ARCH) Dockerfile.tmp
|
cp Dockerfile.$(ARCH) Dockerfile
|
||||||
echo "ENV VERSION "`jq -r .version package.json` >> Dockerfile.tmp
|
echo "ENV VERSION "`jq -r .version package.json` >> Dockerfile
|
||||||
tar --exclude="Dockerfile" --transform='flags=r;s|Dockerfile.tmp|Dockerfile|' -c . | docker build --no-cache=$(DISABLE_CACHE) -t resin/$(ARCH)-supervisor:$(SUPERVISOR_VERSION) -
|
docker build --no-cache=$(DISABLE_CACHE) -t resin/$(ARCH)-supervisor:$(SUPERVISOR_VERSION) .
|
||||||
rm Dockerfile.tmp
|
rm Dockerfile
|
||||||
|
|
||||||
supervisor-accelerated: supervisor-base
|
supervisor-accelerated: supervisor-base
|
||||||
ifeq ($(ACCELERATOR) , )
|
ifeq ($(ACCELERATOR) , )
|
||||||
|
Loading…
Reference in New Issue
Block a user