mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-02 23:03:57 +08:00
21 lines
355 B
Makefile
21 lines
355 B
Makefile
PLATFORM=linux/amd64
|
|
TAG=main
|
|
REGISTRY=monkeycode
|
|
|
|
|
|
# 构建前端代码
|
|
build:
|
|
pnpm run build
|
|
|
|
# 构建并加载到本地Docker
|
|
image: build
|
|
docker buildx build \
|
|
-f .Dockerfile \
|
|
--platform ${PLATFORM} \
|
|
--tag ${REGISTRY}/frontend:${TAG} \
|
|
--load \
|
|
.
|
|
|
|
save: image
|
|
docker save -o /tmp/monkeycode_frontend.tar monkeycode/frontend:main
|
|
|