Revert "fix(Dockerfile): switch discord-gateway to node:22-slim for opus compatibility"

This reverts commit 51d3e47fe3.
This commit is contained in:
asepharyana
2026-07-02 03:54:44 +07:00
parent c408a8d1f7
commit 81f541c080
+3 -5
View File
@@ -1,4 +1,4 @@
FROM node:22-slim FROM node:22-alpine
WORKDIR /app WORKDIR /app
@@ -6,14 +6,12 @@ WORKDIR /app
RUN npm install -g pnpm RUN npm install -g pnpm
# Create non-root user # Create non-root user
RUN groupadd --system app && useradd --system -g app app RUN addgroup -S app && adduser -S -G app app
# Install build tools for native dependencies (node-crc, @discordjs/opus) # Install build tools for native dependencies (node-crc, @discordjs/opus)
# and ffmpeg for voice transmit (PCM to OggOpus encoding) # and ffmpeg for voice transmit (PCM to OggOpus encoding)
# This is done early to cache this expensive layer # This is done early to cache this expensive layer
RUN apt-get update -qq && apt-get install -y -qq --no-install-recommends \ RUN apk add --no-cache python3 make g++ rust cargo ffmpeg linux-headers
python3 make g++ rustc cargo ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Use bundled node headers for native addon compilation # Use bundled node headers for native addon compilation
ENV npm_config_nodedir=/usr/local ENV npm_config_nodedir=/usr/local