mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
use create container in makefile
This commit is contained in:
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:
|
||||
|
||||
Reference in New Issue
Block a user