mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
use create container in makefile
This commit is contained in:
parent
47d60fe51b
commit
2cba7253fc
4
Makefile
4
Makefile
@ -21,7 +21,9 @@ build-all:
|
||||
|
||||
image:
|
||||
docker build -t ctop_build -f Dockerfile_build .
|
||||
docker run -ti --rm -v $(shell pwd):/target ctop_build cp -v /go/bin/ctop /target/
|
||||
docker create --name=ctop_built ctop_build ctop -v
|
||||
docker cp ctop_built:/go/bin/ctop .
|
||||
docker rm -vf ctop_built
|
||||
docker build -t ctop -f Dockerfile .
|
||||
|
||||
release:
|
||||
|
Loading…
Reference in New Issue
Block a user