build: 添加 justfile,方便本地构建镜像 (#85)
This commit is contained in:
10
Justfile
Normal file
10
Justfile
Normal file
@@ -0,0 +1,10 @@
|
||||
clean:
|
||||
rm -rf ./*-bili-sync-rs
|
||||
|
||||
build:
|
||||
cargo build --target x86_64-unknown-linux-musl --release
|
||||
|
||||
build-docker: build
|
||||
cp target/x86_64-unknown-linux-musl/release/bili-sync-rs ./Linux-x86_64-bili-sync-rs
|
||||
docker build . -t bili-sync-rs-local --build-arg="TARGETPLATFORM=linux/amd64"
|
||||
just clean
|
||||
Reference in New Issue
Block a user