mirror of
https://github.com/tenox7/wrp.git
synced 2024-11-21 19:30:48 +00:00
add arm64 docker container
This commit is contained in:
parent
6aefcdacc5
commit
67ed26b8f4
@ -1,5 +1,6 @@
|
|||||||
FROM chromedp/headless-shell
|
FROM chromedp/headless-shell
|
||||||
ADD wrp /wrp
|
ARG TARGETARCH
|
||||||
|
ADD wrp-${TARGETARCH}-linux /wrp
|
||||||
ENTRYPOINT ["/wrp"]
|
ENTRYPOINT ["/wrp"]
|
||||||
ENV PATH="/headless-shell:${PATH}"
|
ENV PATH="/headless-shell:${PATH}"
|
||||||
LABEL maintainer="as@tenoware.com"
|
LABEL maintainer="as@tenoware.com"
|
||||||
|
7
Makefile
7
Makefile
@ -15,10 +15,9 @@ cross:
|
|||||||
GOOS=linux GOARCH=arm64 go build -a -o wrp-arm64-linux wrp.go
|
GOOS=linux GOARCH=arm64 go build -a -o wrp-arm64-linux wrp.go
|
||||||
|
|
||||||
docker: wrp
|
docker: wrp
|
||||||
docker build -t tenox7/wrp:latest .
|
GOOS=linux GOARCH=amd64 go build -a -o wrp-amd64-linux wrp.go
|
||||||
|
GOOS=linux GOARCH=arm64 go build -a -o wrp-arm64-linux wrp.go
|
||||||
dockerhub:
|
docker buildx build --platform linux/amd64,linux/arm64 -t tenox7/wrp:latest --push .
|
||||||
docker push tenox7/wrp:latest
|
|
||||||
|
|
||||||
gcrio:
|
gcrio:
|
||||||
docker tag tenox7/wrp:latest gcr.io/tenox7/wrp
|
docker tag tenox7/wrp:latest gcr.io/tenox7/wrp
|
||||||
|
Loading…
Reference in New Issue
Block a user