getmango / Mango

Mango is a self-hosted manga server and web reader
https://getmango.app
MIT License
1.7k stars 120 forks source link

[Bug Report] Unable to build on ARM #203

Closed JJGO closed 3 years ago

JJGO commented 3 years ago

Describe the bug The docker image fails to build on arm7

To Reproduce Steps to reproduce the behavior:

  1. docker-compose up in a raspberry pi 4b

Expected behavior Docker image would build correctly

Environment (please complete the following information):

Docker (if you are running Mango in a Docker container)

Additional context Trace of docker-compose up

Digest: sha256:05e1052172091dc6e1839c5d490d68774ad9259897140b1a148a35605e0f1216
Status: Downloaded newer image for crystallang/crystal:0.35.1-alpine
 ---> 6a09b54a6eb8
Step 2/9 : WORKDIR /Mango
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
 ---> Running in de63ab99930c
Removing intermediate container de63ab99930c
 ---> e009125ac248
Step 3/9 : COPY . .
 ---> a6d8e7694a04
Step 4/9 : RUN apk add --no-cache yarn yaml sqlite-static libarchive-dev libarchive-static acl-static expat-static zstd-static lz4-static bzip2-static libjpeg-turbo-dev libpng-dev tiff-dev
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
 ---> Running in f0b6d0f8e15b
standard_init_linux.go:228: exec user process caused: exec format error
ERROR: Service 'mango' failed to build: The command '/bin/sh -c apk add --no-cache yarn yaml sqlite-static libarchive-dev libarchive-static acl-static expat-static zstd-static lz4-static bzip2-static libjpeg-turbo-dev libpng-dev tiff-dev' returned a non-zero code: 1
hkalexling commented 3 years ago

Hi, you should follow the wiki to build for ARM. See #126.