From 4f5effbd3b7c9916c261a3772f5bcc3a8c7b5048 Mon Sep 17 00:00:00 2001 From: Joe Howard Date: Mon, 7 Apr 2025 18:55:21 -0500 Subject: [PATCH] fix: install Python so @discordjs/opus can build from source --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Dockerfile b/Dockerfile index 886e639..65e8156 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,16 @@ FROM base AS dependencies WORKDIR /usr/app +# Add Python and build tools to compile native modules +RUN apt-get update \ + && apt-get install --no-install-recommends -y \ + python3 \ + python-is-python3 \ + build-essential \ + && apt-get autoclean \ + && apt-get autoremove \ + && rm -rf /var/lib/apt/lists/* + COPY package.json . COPY yarn.lock .