diff --git a/Dockerfile b/Dockerfile index 8f584b81..92d35e7d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Builder -FROM node:10 as builder +FROM node:12 as builder # Support custom branches of the react-sdk and js-sdk. This also helps us build # images of riot-web develop. @@ -9,7 +9,10 @@ ARG REACT_SDK_BRANCH="master" ARG JS_SDK_REPO="https://github.com/matrix-org/matrix-js-sdk.git" ARG JS_SDK_BRANCH="master" -RUN apt-get update && apt-get install -y git dos2unix +RUN apt-get update && apt-get install -y git dos2unix \ +# These packages are required for building Canvas on architectures like Arm +# See https://www.npmjs.com/package/canvas#compiling + build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev WORKDIR /src