screepers / screeps-launcher

Launcher for the Screeps Private Server
MIT License
128 stars 34 forks source link

Is it possible to make an arm64v8 version in dockerhub? #23

Open ProblemFactory opened 2 years ago

ProblemFactory commented 2 years ago

Hi, I am trying to deploy this in my raspberry pi with docker but the docker image only supports amd64. Can you make a version for arm64v8? Thank you.

AlinaNova21 commented 2 years ago

I'll have to look into doing an arm build via circleci, haven't done that recently. For now, an option is to build your own. docker build -t screeps-launcher . in the folder on an arm machine should work.

Elbarae1921 commented 1 year ago

Make sure to change this line in the Dockerfile tho

RUN CGO_ENABLED=0 \
    GOOS=linux \
-   GOARCH=amd64 \
+   GOARCH=arm64 \
    go build -o screeps-launcher ./cmd/screeps-launcher

Otherwise you'll just be building an amd64 image.

philipp-horstenkamp commented 1 month ago

The newest version contains something similar on and build arg in Dockerfile / compose. This may be enough?

Elbarae1921 commented 1 month ago

yes as long as you specify ARCH: arm64 in the compose file. or change the default value in the Dockerfile. that should work