fix(Dockerfile): use node:22-slim for backend (glibc), add linux-headers + nodedir for gateway

This commit is contained in:
asepharyana
2026-07-02 02:22:09 +07:00
parent 13bba60e3a
commit 9e8f4377af
2 changed files with 7 additions and 5 deletions
+4 -1
View File
@@ -11,7 +11,10 @@ RUN addgroup -S app && adduser -S -G app app
# Install build tools for native dependencies (node-crc, @discordjs/opus)
# and ffmpeg for voice transmit (PCM to OggOpus encoding)
# This is done early to cache this expensive layer
RUN apk add --no-cache python3 make g++ rust cargo ffmpeg
RUN apk add --no-cache python3 make g++ rust cargo ffmpeg linux-headers
# Use bundled node headers for native addon compilation
ENV npm_config_nodedir=/usr/local
# Copy dependency definition files first for better caching
COPY pnpm-workspace.yaml .