From 9dc0fa0e88da4906fa4ad6a003570939a17f970f Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Fri, 21 Jun 2024 11:06:06 -0400 Subject: [PATCH 1/2] Pin the Node minor version for Docker builds as 20.13 & 20.14 cause Hookshot to crash on startup (at least on arm64) --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 101af29c..598d5075 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Stage 0: Build the thing # Need debian based image to build the native rust module # as musl doesn't support cdylib -FROM node:20-slim AS builder +FROM node:20.12-slim AS builder # Needed in order to build rust FFI bindings. RUN apt-get update && apt-get install -y build-essential cmake curl pkg-config pkg-config libssl-dev @@ -29,7 +29,7 @@ RUN yarn build # Stage 1: The actual container -FROM node:20-slim +FROM node:20.12-slim WORKDIR /bin/matrix-hookshot From c5261a9ea7778252b34de76d2c057db898c0eda6 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Fri, 21 Jun 2024 11:18:18 -0400 Subject: [PATCH 2/2] Add changelog --- changelog.d/949.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/949.misc diff --git a/changelog.d/949.misc b/changelog.d/949.misc new file mode 100644 index 00000000..4a86d09c --- /dev/null +++ b/changelog.d/949.misc @@ -0,0 +1 @@ +Pin the minor version of Node for Docker builds to avoid a startup crash on arm64.