You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
468 B
Makefile
22 lines
468 B
Makefile
![]()
3 weeks ago
|
all: frontend build tar
|
||
|
image: frontend docker-build save-image
|
||
|
|
||
|
TAG=v1.0
|
||
|
|
||
|
frontend:
|
||
|
cd cls && yarn run build
|
||
|
tar:
|
||
|
tar -czf cls-h5.$(TAG).tar.gz cls config
|
||
|
|
||
|
docker-build:
|
||
|
docker build -t k8s.dingshudata.com/cmcc-panoramic-application:$(TAG) .
|
||
|
|
||
|
save-image:
|
||
|
docker save -o cmcc.tar k8s.dingshudata.com/cmcc-panoramic-application
|
||
|
|
||
|
build:export CGO_ENABLED=0
|
||
|
build:export GOOS=linux
|
||
|
build:export GOARCH=amd64
|
||
|
build:
|
||
|
go build -ldflags -s -tags="jsoniter nomsgpack" .
|