Skip to content

Commit

Permalink
Dockerfile: adds a warning if $TARGETARCH or $TARGETVARIANT missi…
Browse files Browse the repository at this point in the history
…ng (#686)
  • Loading branch information
samm81 authored Jun 27, 2023
1 parent 3593cb0 commit 935bd51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" && \
Expand Down

0 comments on commit 935bd51

Please sign in to comment.