Skip to content

Commit 846cebe

Browse files
committed
Add build dependencies for 'canvas' to Dockerfile
When building the Docker image on amd64, canvas can be installed from a pre-built binary. When building on an another architecture, however, such as arm (e.g. on a Raspberry Pi), these binaries need to be built locally, as per https://www.npmjs.com/package/canvas#compiling. These added dependencies facilitate this. See also, issue element-hq#14400. Signed-off-by: Matt Cengia <mattcen@mattcen.com>
1 parent 8eac445 commit 846cebe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ ARG REACT_SDK_BRANCH="master"
99
ARG JS_SDK_REPO="https://github.com/matrix-org/matrix-js-sdk.git"
1010
ARG JS_SDK_BRANCH="master"
1111

12-
RUN apt-get update && apt-get install -y git dos2unix
12+
RUN apt-get update && apt-get install -y git dos2unix \
13+
build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
1314

1415
WORKDIR /src
1516

0 commit comments

Comments
 (0)