diff service/announce/Dockerfile @ 670:f70514b127d2

service that calls for TTS audio then serves it to chromecasts and to playAudio services Ignore-this: 4ede3d6eb6b35096f70fc35ffe5c7a07
author drewp@bigasterisk.com
date Sun, 22 Dec 2019 00:35:58 -0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/service/announce/Dockerfile	Sun Dec 22 00:35:58 2019 -0800
@@ -0,0 +1,21 @@
+FROM bang6:5000/base_x86
+
+WORKDIR /opt
+
+RUN apt-get update
+RUN apt-get install -y openjdk-11-jre-headless unzip
+
+RUN wget https://github.com/marytts/marytts/releases/download/v5.2/marytts-5.2.zip && \
+        unzip marytts-5.2.zip && \
+        rm marytts-5.2.zip
+
+RUN wget -O ./cast https://github.com/barnybug/go-cast/releases/download/0.1.0/cast-linux-amd64 && chmod 755 ./cast
+
+COPY requirements.txt ./
+RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements.txt
+
+COPY *.py *.html ./
+
+EXPOSE 9010
+
+CMD [ "python3", "./announce.py" ]