From f8aea64d5a660ce02c7d4ec27cedf73b9c80fc22 Mon Sep 17 00:00:00 2001
From: Will Hunt <will@half-shot.uk>
Date: Tue, 9 Aug 2022 16:27:07 +0100
Subject: [PATCH] Use debian slim for docker builds (#828)

* Use debian slim for docker builds

* changelog

* Update 828.bugfix
---
 Dockerfile             | 6 +++---
 changelog.d/828.bugfix | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)
 create mode 100644 changelog.d/828.bugfix

diff --git a/Dockerfile b/Dockerfile
index 0b45e1d..b3b3cf0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,7 @@
-FROM node:16-alpine AS BUILD
+FROM node:16-slim AS BUILD
 COPY . /tmp/src
 # install some dependencies needed for the build process
-RUN apk add --no-cache -t build-deps make gcc g++ python3 ca-certificates libc-dev wget git
+RUN apt update && apt install -y build-essential make gcc g++ python3 ca-certificates libc-dev wget git
 
 # Workaround for https://github.com/matrix-org/matrix-appservice-discord/issues/803
 RUN git config --global url.https://github.com/.insteadOf git://github.com/
@@ -9,7 +9,7 @@ RUN git config --global url.https://github.com/.insteadOf git://github.com/
 RUN cd /tmp/src \
     && yarn
 
-FROM node:16-alpine
+FROM node:16-slim
 ENV NODE_ENV=production
 COPY --from=BUILD /tmp/src/build /build
 COPY --from=BUILD /tmp/src/config /config
diff --git a/changelog.d/828.bugfix b/changelog.d/828.bugfix
new file mode 100644
index 0000000..b58c10e
--- /dev/null
+++ b/changelog.d/828.bugfix
@@ -0,0 +1 @@
+Fix Docker instances not starting due to being unable to load a dynamic library in the latest unstable image.
-- 
GitLab