Dockerfile: adds a warning if `$TARGETARCH` or `$TARGETVARIANT` missing (#686)

renovate/github.com-imdario-mergo-1.x
Samuel Maynard 1 year ago committed by GitHub
parent 3593cb0c87
commit 935bd51510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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" && \

Loading…
Cancel
Save