Skip to content

Commit 7e3527f

Browse files
authored
Merge pull request element-hq#14522 from mattcen/fix-arm-docker-build
Fix arm docker build
2 parents 66ca5f3 + 86185e8 commit 7e3527f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Builder
2-
FROM node:10 as builder
2+
FROM node:12 as builder
33

44
# Support custom branches of the react-sdk and js-sdk. This also helps us build
55
# images of riot-web develop.
@@ -9,7 +9,10 @@ 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+
# These packages are required for building Canvas on architectures like Arm
14+
# See https://www.npmjs.com/package/canvas#compiling
15+
build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
1316

1417
WORKDIR /src
1518

0 commit comments

Comments
 (0)