From 5f1aeeca784e18dda51dbae2bd28034b2a8172d9 Mon Sep 17 00:00:00 2001 From: James Magahern Date: Sun, 16 Feb 2025 00:58:35 -0800 Subject: [PATCH] Dockerfile: support multiplatform --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ae07969..232db4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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