mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-02 16:53:17 +00:00
Dockerfile: adds a warning if $TARGETARCH
or $TARGETVARIANT
missing (#686)
This commit is contained in:
parent
3593cb0c87
commit
935bd51510
@ -40,6 +40,8 @@ RUN apt-get install -y libopencv-dev && \
|
|||||||
# piper requirements
|
# piper requirements
|
||||||
# Use pre-compiled Piper phonemization library (includes onnxruntime)
|
# Use pre-compiled Piper phonemization library (includes onnxruntime)
|
||||||
#RUN if echo "${GO_TAGS}" | grep -q "tts"; then \
|
#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" | \
|
RUN curl -L "https://github.com/gabime/spdlog/archive/refs/tags/v${SPDLOG_VERSION}.tar.gz" | \
|
||||||
tar -xzvf - && \
|
tar -xzvf - && \
|
||||||
mkdir -p "spdlog-${SPDLOG_VERSION}/build" && \
|
mkdir -p "spdlog-${SPDLOG_VERSION}/build" && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user