Compress linux binary
This commit is contained in:
parent
7be787a914
commit
8c52b417a9
4
Makefile
4
Makefile
|
@ -14,8 +14,10 @@ build_docker:
|
||||||
cd backend && docker build . -t cmdui:build
|
cd backend && docker build . -t cmdui:build
|
||||||
cd backend && docker run -i -v ${PWD}/backend/build:/build cmdui:build \
|
cd backend && docker run -i -v ${PWD}/backend/build:/build cmdui:build \
|
||||||
go build -tags=binassets -o /build/cmdui_linux main.go
|
go build -tags=binassets -o /build/cmdui_linux main.go
|
||||||
|
gzip -kf backend/build/cmdui_linux
|
||||||
@echo Build complete!
|
@echo Build complete!
|
||||||
@echo Binary is located at backend/build/cmdui_linux
|
@echo Binary: backend/build/cmdui_linux
|
||||||
|
@echo GZIP: backend/build/cmdui_linux.gz
|
||||||
|
|
||||||
assets:
|
assets:
|
||||||
cd frontend && npm run build
|
cd frontend && npm run build
|
||||||
|
|
Loading…
Reference in New Issue