Open httpiga opened 2 years ago
Editing first line of Dockerfile
by replacing
FROM --platform=$BUILDPLATFORM
with
FROM --platform=${BUILDPLATFORM:-linux/arm64}
allowed me to complete the build.
Hi @httpiga
Glad you could manage to find a solution!
Do we need to change something in our Dockerfile
or can we just close this issue?
I don't think a change in Dockerfile is needed since my fallback only works for arm64 architectures. I'd rather suggest adding a fallback using a new .env defined argument, so that every user can specify the architecture he's using. WDYT?
How would that look like specifically?
The Issue tracker is ONLY used for reporting bugs. New features should be discussed on our Slack channel or in Discussions.
Bug Description I can't build docker image on a Odroid M1 (see output below). Development enviroment builds successfully. I think that it fails to recognize the platform, returning an invalid empty string. Is there a way to manual override
$BUILDPLATFORM
?To Reproduce
git clone https://github.com/ghostfolio/ghostfolio.git
cd ghostfolio
docker-compose --env-file ./.env -f docker/docker-compose.build.yml build
Expected behavior Docker build to complete or, as an alternative, the user should be able to manually specify
BUILDPLATFORM
variable.Environment