mirror of
https://github.com/tenox7/wrp.git
synced 2024-10-08 18:54:32 +00:00
use local binaries for local docker
This commit is contained in:
parent
0d998af68c
commit
51c4c35651
6
Dockerfile.local
Normal file
6
Dockerfile.local
Normal file
@ -0,0 +1,6 @@
|
||||
FROM chromedp/headless-shell
|
||||
ARG TARGETARCH
|
||||
ADD wrp-${TARGETARCH}-linux /wrp
|
||||
ENTRYPOINT ["/wrp"]
|
||||
ENV PATH="/headless-shell:${PATH}"
|
||||
LABEL maintainer="as@tenoware.com"
|
7
Makefile
7
Makefile
@ -14,10 +14,15 @@ cross:
|
||||
GOOS=linux GOARCH=arm64 go build -a -o wrp-arm64-linux
|
||||
|
||||
docker-local:
|
||||
docker buildx build --platform linux/amd64,linux/arm64 -t tenox7/wrp:latest --load .
|
||||
GOOS=linux GOARCH=amd64 go build -a -o wrp-amd64-linux
|
||||
GOOS=linux GOARCH=arm64 go build -a -o wrp-arm64-linux
|
||||
docker buildx build --platform linux/amd64,linux/arm64 -t tenox7/wrp:latest -f Dockerfile.local --load .
|
||||
|
||||
docker-push:
|
||||
docker buildx build --platform linux/amd64,linux/arm64 -t tenox7/wrp:latest --push .
|
||||
|
||||
docker-clean:
|
||||
docker buildx prune -a -f
|
||||
|
||||
clean:
|
||||
rm -rf wrp-* wrp
|
||||
|
Loading…
Reference in New Issue
Block a user