arm64 build for docker?
TotalLag opened this issue · 2 comments
TotalLag commented
is it possible to get a docker build for arm or linux/arm64/v8 ?
Kush-Saxena commented
Assuming you're on a arm based machine. If you have golang, just clone repo and build it (using something like this GOOS=linux GOARCH=arm go build
).
However if you don't have that you can use the following steps:
- Make a folder and open terminal there.
- Execute this :
docker run --rm -it --platform=linux/arm64/v8 -v .:/go/bin golang sh -c "git clone https://github.com/go rcon/rcon-cli && cd rcon-cli/cmd/gorcon/ && GOOS=linux GOARCH=arm go build -o /go/bin/gorcon"
- Find the binary in same folder where you executed the command.