add arm64 docker container

This commit is contained in:
Antoni Sawicki 2024-05-23 00:33:40 -07:00
parent 6aefcdacc5
commit 67ed26b8f4
2 changed files with 5 additions and 5 deletions

View File

@ -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"

View File

@ -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