mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-23 23:42:29 +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
|
||||
|
||||
supervisor: supervisor-base
|
||||
cp Dockerfile.$(ARCH) Dockerfile.tmp
|
||||
echo "ENV VERSION "`jq -r .version package.json` >> Dockerfile.tmp
|
||||
tar --exclude="Dockerfile" --transform='flags=r;s|Dockerfile.tmp|Dockerfile|' -c . | docker build --no-cache=$(DISABLE_CACHE) -t resin/$(ARCH)-supervisor:$(SUPERVISOR_VERSION) -
|
||||
rm Dockerfile.tmp
|
||||
cp Dockerfile.$(ARCH) Dockerfile
|
||||
echo "ENV VERSION "`jq -r .version package.json` >> Dockerfile
|
||||
docker build --no-cache=$(DISABLE_CACHE) -t resin/$(ARCH)-supervisor:$(SUPERVISOR_VERSION) .
|
||||
rm Dockerfile
|
||||
|
||||
supervisor-accelerated: supervisor-base
|
||||
ifeq ($(ACCELERATOR) , )
|
||||
|
Loading…
Reference in New Issue
Block a user