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:
@@ -28,6 +28,9 @@ COPY services/discord-gateway ./services/discord-gateway
|
|||||||
# Copy Drizzle migrations (relative path used by migrator)
|
# Copy Drizzle migrations (relative path used by migrator)
|
||||||
COPY services/discord-gateway/drizzle ./drizzle
|
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
|
# Install dependencies
|
||||||
RUN pnpm install --frozen-lockfile
|
RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user