annotate service/announce/Dockerfile @ 1743:daf9deee42ca

deployment
author drewp@bigasterisk.com
date Thu, 09 Nov 2023 14:55:26 -0800
parents f70514b127d2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
670
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
1 FROM bang6:5000/base_x86
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
2
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
3 WORKDIR /opt
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
4
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
5 RUN apt-get update
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
6 RUN apt-get install -y openjdk-11-jre-headless unzip
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
7
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
8 RUN wget https://github.com/marytts/marytts/releases/download/v5.2/marytts-5.2.zip && \
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
9 unzip marytts-5.2.zip && \
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
10 rm marytts-5.2.zip
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
11
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
12 RUN wget -O ./cast https://github.com/barnybug/go-cast/releases/download/0.1.0/cast-linux-amd64 && chmod 755 ./cast
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
13
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
14 COPY requirements.txt ./
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
15 RUN pip3 install --index-url https://projects.bigasterisk.com/ --extra-index-url https://pypi.org/simple -r requirements.txt
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
16
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
17 COPY *.py *.html ./
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
18
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
19 EXPOSE 9010
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
20
f70514b127d2 service that calls for TTS audio then serves it to chromecasts and to playAudio services
drewp@bigasterisk.com
parents:
diff changeset
21 CMD [ "python3", "./announce.py" ]