From 3772ce3acab5a7421144df3a538def33baf0eda4 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 4 Sep 2022 11:33:57 +0300 Subject: [PATCH] Fix building Dockerfile on Mac M1 etc. Thanks to willman42 and xet7 ! Fixes #4666 --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8d80b6c17..fdc4e9971 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,11 @@ -FROM ubuntu:22.04 +FROM --platform=linux/amd64 ubuntu:22.04 as wekan LABEL maintainer="wekan" +# 2022-09-04: +# - above "--platform=linux/amd64 ubuntu:22.04 as wekan" is needed to build Dockerfile +# correctly on Mac M1 etc, to not get this error: +# https://stackoverflow.com/questions/71040681/qemu-x86-64-could-not-open-lib64-ld-linux-x86-64-so-2-no-such-file-or-direc + # 2022-04-25: # - gyp does not yet work with Ubuntu 22.04 ubuntu:rolling, # so changing to 21.10. https://github.com/wekan/wekan/issues/4488 @@ -17,7 +22,7 @@ ARG DEBIAN_FRONTEND=noninteractive ENV BUILD_DEPS="apt-utils libarchive-tools gnupg gosu wget curl bzip2 g++ build-essential git ca-certificates python3" \ DEBUG=false \ NODE_VERSION=v14.20.0 \ - METEOR_RELEASE=1.10.2 \ + METEOR_RELEASE=2.7.3 \ USE_EDGE=false \ METEOR_EDGE=1.5-beta.17 \ NPM_VERSION=latest \