fix(docker): add build tools for native dependencies in discord-gateway

Install python3, make, g++, rust, and cargo in Alpine image to resolve:
- node-crc native build failure (requires cargo)
- @discordjs/opus native build issues (requires build tools)

This fixes the GitHub Actions build failure in the discord-gateway service.
This commit is contained in:
MythEclipse
2026-06-08 20:16:47 +07:00
parent 1565a326d0
commit 6f4053c1cc
+3
View File
@@ -28,6 +28,9 @@ COPY services/discord-gateway ./services/discord-gateway
# Copy Drizzle migrations (relative path used by migrator)
COPY services/discord-gateway/drizzle ./drizzle
# Install build tools for native dependencies (node-crc, @discordjs/opus)
RUN apk add --no-cache python3 make g++ rust cargo
# Install dependencies
RUN pnpm install --frozen-lockfile