diff --git a/Dockerfile b/Dockerfile
index 0b45e1d7213dfe5085e953bb514aa211cb7ca87d..b3b3cf0889d694ff038e159fdb4db795b1e3b54c 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 0000000000000000000000000000000000000000..b58c10e2354c9c650c955e3c5ce29e0532e1ba4c
--- /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.