Dockerfile: support multiplatform

This commit is contained in:
2025-02-16 00:58:35 -08:00
parent 92c5582c98
commit 95bd551507

View File

@@ -1,5 +1,5 @@
# Build stage
FROM node:20-slim AS builder
FROM --platform=$TARGETPLATFORM node:20-slim AS builder
WORKDIR /app
@@ -18,7 +18,7 @@ COPY . .
RUN npm run build
# Production stage
FROM alpine:edge
FROM --platform=$TARGETPLATFORM alpine:edge
RUN apk update && apk add mpv npm yt-dlp pulseaudio pulseaudio-utils