stub dockerfile and cmd is nicer than entrypoint til
parent
4652ed623b
commit
af8f75bc7c
|
|
@ -0,0 +1,20 @@
|
|||
FROM debian:stable-slim
|
||||
|
||||
RUN apt -y update && apt -y upgrade && apt -y install wget
|
||||
|
||||
# tts
|
||||
RUN \
|
||||
wget https://github.com/rhasspy/larynx/releases/download/v1.1/larynx-tts_1.1.0_amd64.deb \
|
||||
&& apt -y install ./larynx-tts_1.1.0_amd64.deb \
|
||||
&& rm ./larynx-tts_1.1.0_amd64.deb
|
||||
|
||||
# stt #nogo since i need microphone
|
||||
|
||||
# entrypoint
|
||||
RUN echo 'date' > /entrypoint.sh \
|
||||
&& echo 'cleanup() { kill -9 $(jobs -p); wait; }; trap cleanup EXIT' >> /entrypoint.sh \
|
||||
&& echo '( while true; do larynx-server; sleep 5; done ) &' >> /entrypoint.sh \
|
||||
&& echo 'read' >> /entrypoint.sh
|
||||
|
||||
ENTRYPOINT []
|
||||
CMD ["bash", "/entrypoint.sh"]
|
||||
Loading…
Reference in New Issue