Skip to content

Commit 723a492

Browse files
committed
Bring in line with main
1 parent ca064ad commit 723a492

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

Dockerfile

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,12 @@ RUN \
1717
apt-get install -y --no-install-recommends \
1818
python3-venv && \
1919
if [ -z ${PIPER_VERSION+x} ]; then \
20-
PIPER_VERSION=$(curl -sL "https://api.github.com/repos/rhasspy/wyoming-piper/commits/master" \
21-
| jq -r .sha); \
20+
PIPER_VERSION=$(curl -sL https://pypi.python.org/pypi/wyoming-piper/json |jq -r '. | .info.version'); \
2221
fi && \
23-
mkdir -p /tmp/piper-build && \
24-
curl -sL -o \
25-
/tmp/piper.tar.gz -L \
26-
"https://github.com/rhasspy/wyoming-piper/archive/${PIPER_VERSION}.tar.gz" && \
27-
tar xzf \
28-
/tmp/piper.tar.gz -C \
29-
/tmp/piper-build --strip-components=1 && \
30-
cd /tmp/piper-build && \
3122
python3 -m venv /lsiopy && \
3223
pip install -U --no-cache-dir \
3324
pip \
3425
wheel && \
35-
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ . && \
36-
pip uninstall -y onnxruntime && \
3726
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ \
3827
nvidia-cublas-cu12 \
3928
nvidia-cuda-nvrtc-cu12 \
@@ -42,11 +31,10 @@ RUN \
4231
nvidia-cufft-cu12 \
4332
nvidia-curand-cu12 \
4433
onnxruntime-gpu \
45-
piper-tts && \
34+
piper-tts \
35+
"wyoming-piper==${PIPER_VERSION}" && \
4636
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
4737
echo "**** cleanup ****" && \
48-
apt-get autoremove -y && \
49-
apt-get clean -y && \
5038
rm -rf \
5139
/var/lib/apt/lists/* \
5240
/tmp/*

0 commit comments

Comments
 (0)