From 935bd51510812b874af9f7ab1a34f36049890023 Mon Sep 17 00:00:00 2001 From: Samuel Maynard Date: Tue, 27 Jun 2023 03:00:43 -0400 Subject: [PATCH] Dockerfile: adds a warning if `$TARGETARCH` or `$TARGETVARIANT` missing (#686) --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index db31e01..eb0e991 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,6 +40,8 @@ RUN apt-get install -y libopencv-dev && \ # piper requirements # Use pre-compiled Piper phonemization library (includes onnxruntime) #RUN if echo "${GO_TAGS}" | grep -q "tts"; then \ +RUN test -n "$TARGETARCH" \ + || (echo 'missing $TARGETARCH, either set this `ARG` manually, or run using `docker buildkit`' && false) RUN curl -L "https://github.com/gabime/spdlog/archive/refs/tags/v${SPDLOG_VERSION}.tar.gz" | \ tar -xzvf - && \ mkdir -p "spdlog-${SPDLOG_VERSION}/build" && \