stub dockerfile and cmd is nicer than entrypoint til

master
Bel LaPointe 2023-03-28 07:49:32 -06:00
parent 4652ed623b
commit af8f75bc7c
1 changed files with 20 additions and 0 deletions

20
Dockerfile Normal file
View File

@ -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"]