From 5395b787e82127b28fd3e5c073547cd560076f60 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Mon, 6 Nov 2023 13:17:00 -0600 Subject: [PATCH] No test in Docker --- Dockerfile | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 38890ff..36a9168 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,25 +54,26 @@ RUN mkdir -p piper && \ # ----------------------------------------------------------------------------- -FROM debian:bullseye as test -ARG TARGETARCH -ARG TARGETVARIANT +# FROM debian:bullseye as test +# ARG TARGETARCH +# ARG TARGETVARIANT -WORKDIR /test +# WORKDIR /test -COPY local/en-us/lessac/low/en-us-lessac-low.onnx \ - local/en-us/lessac/low/en-us-lessac-low.onnx.json ./ +# COPY local/en-us/lessac/low/en-us-lessac-low.onnx \ +# local/en-us/lessac/low/en-us-lessac-low.onnx.json ./ -# Run Piper on a test sentence and verify that the WAV file isn't empty -COPY --from=build /dist/piper_*.tar.gz ./ -RUN tar -xzf piper*.tar.gz -RUN echo 'This is a test.' | ./piper/piper -m en-us-lessac-low.onnx -f test.wav -RUN if [ ! -f test.wav ]; then exit 1; fi -RUN size="$(wc -c < test.wav)"; \ - if [ "${size}" -lt "1000" ]; then echo "File size is ${size} bytes"; exit 1; fi +# # Run Piper on a test sentence and verify that the WAV file isn't empty +# COPY --from=build /dist/piper_*.tar.gz ./ +# RUN tar -xzf piper*.tar.gz +# RUN echo 'This is a test.' | ./piper/piper -m en-us-lessac-low.onnx -f test.wav +# RUN if [ ! -f test.wav ]; then exit 1; fi +# RUN size="$(wc -c < test.wav)"; \ +# if [ "${size}" -lt "1000" ]; then echo "File size is ${size} bytes"; exit 1; fi # ----------------------------------------------------------------------------- FROM scratch -COPY --from=test /test/piper_*.tar.gz /test/test.wav ./ +# COPY --from=test /test/piper_*.tar.gz /test/test.wav ./ +COPY --from=build /dist/piper_*.tar.gz ./