fix: install Python so @discordjs/opus can build from source

This commit is contained in:
Joe Howard 2025-04-07 18:55:21 -05:00
parent d786230242
commit 4f5effbd3b

View file

@ -18,6 +18,16 @@ FROM base AS dependencies
WORKDIR /usr/app 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 package.json .
COPY yarn.lock . COPY yarn.lock .