screeps-launcher icon indicating copy to clipboard operation
screeps-launcher copied to clipboard

Is it possible to make an arm64v8 version in dockerhub?

Open ProblemFactory opened this issue 3 years ago • 4 comments

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.

ProblemFactory avatar Jul 17 '21 01:07 ProblemFactory

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.

AlinaNova21 avatar Jul 17 '21 04:07 AlinaNova21

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.

Elbarae1921 avatar Sep 25 '22 15:09 Elbarae1921

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

philipp-horstenkamp avatar May 22 '24 22:05 philipp-horstenkamp

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

Elbarae1921 avatar May 22 '24 22:05 Elbarae1921