gorcon / rcon-cli

RCON client for executing queries on game server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

arm64 build for docker?

TotalLag opened this issue · comments

is it possible to get a docker build for arm or linux/arm64/v8 ?

@TotalLag

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:

  1. Make a folder and open terminal there.
  2. 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"
  3. Find the binary in same folder where you executed the command.