From 64016389f727a1cd219ec26c0cf3a53db1c5a256 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 26 May 2024 23:37:26 +0200 Subject: [PATCH] Fix arm64 build, add TARGETPLATFORM ARG, #build --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 33a6acff..f9c4ccb0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,6 @@ # First stage to build python wheel FROM python:3.11.8-slim-bookworm AS builder -ARG TARGETPLATFORM RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential gcc libldap2-dev libsasl2-dev libssl-dev git @@ -15,13 +14,15 @@ RUN pip install --user -r requirements.txt # build ffmpeg FROM python:3.11.8-slim-bookworm as ffmpeg-builder + +ARG TARGETPLATFORM + COPY docker_assets/ffmpeg_download.py ffmpeg_download.py RUN python ffmpeg_download.py $TARGETPLATFORM # build final image FROM python:3.11.8-slim-bookworm as tubearchivist -ARG TARGETPLATFORM ARG INSTALL_DEBUG ENV PYTHONUNBUFFERED 1