mirror of
https://github.com/tenox7/wrp.git
synced 2025-01-04 13:29:54 +00:00
use local binaries for local dockerfile
This commit is contained in:
parent
b5747f52e7
commit
500ad0d19a
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"
|
4
Makefile
4
Makefile
@ -14,7 +14,9 @@ cross:
|
|||||||
GOOS=linux GOARCH=arm64 go build -a -o wrp-arm64-linux
|
GOOS=linux GOARCH=arm64 go build -a -o wrp-arm64-linux
|
||||||
|
|
||||||
docker-local:
|
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-push:
|
||||||
docker buildx build --platform linux/amd64,linux/arm64 -t tenox7/wrp:latest --push .
|
docker buildx build --platform linux/amd64,linux/arm64 -t tenox7/wrp:latest --push .
|
||||||
|
Loading…
Reference in New Issue
Block a user