Mercurial > code > home > repos > homeauto
annotate service/playSound/Dockerfile.pi @ 1754:92999dfbf321 default tip
add shelly support
author | drewp@bigasterisk.com |
---|---|
date | Tue, 04 Jun 2024 13:03:43 -0700 |
parents | 28cc07978a71 |
children |
rev | line source |
---|---|
359
b3959142d7d8
move speech_music into docker and into pygame
drewp@bigasterisk.com
parents:
diff
changeset
|
1 FROM bang6:5000/base_pi |
b3959142d7d8
move speech_music into docker and into pygame
drewp@bigasterisk.com
parents:
diff
changeset
|
2 |
b3959142d7d8
move speech_music into docker and into pygame
drewp@bigasterisk.com
parents:
diff
changeset
|
3 WORKDIR /opt |
b3959142d7d8
move speech_music into docker and into pygame
drewp@bigasterisk.com
parents:
diff
changeset
|
4 |
453
9fd92202c886
WIP updating to read sounds from http
drewp@bigasterisk.com
parents:
359
diff
changeset
|
5 RUN apt-get update |
359
b3959142d7d8
move speech_music into docker and into pygame
drewp@bigasterisk.com
parents:
diff
changeset
|
6 RUN apt-get install --yes libopenal1 libogg0 pulseaudio-utils python-pygame festival sox |
b3959142d7d8
move speech_music into docker and into pygame
drewp@bigasterisk.com
parents:
diff
changeset
|
7 COPY requirements.txt ./ |
b3959142d7d8
move speech_music into docker and into pygame
drewp@bigasterisk.com
parents:
diff
changeset
|
8 RUN pip install -r requirements.txt |
b3959142d7d8
move speech_music into docker and into pygame
drewp@bigasterisk.com
parents:
diff
changeset
|
9 |
b3959142d7d8
move speech_music into docker and into pygame
drewp@bigasterisk.com
parents:
diff
changeset
|
10 COPY *.py req* *.jade ./ |
b3959142d7d8
move speech_music into docker and into pygame
drewp@bigasterisk.com
parents:
diff
changeset
|
11 COPY pulse-client.conf /etc/pulse/client.conf |
b3959142d7d8
move speech_music into docker and into pygame
drewp@bigasterisk.com
parents:
diff
changeset
|
12 |
b3959142d7d8
move speech_music into docker and into pygame
drewp@bigasterisk.com
parents:
diff
changeset
|
13 ENV PULSE_SERVER /tmp/pulseaudio |
b3959142d7d8
move speech_music into docker and into pygame
drewp@bigasterisk.com
parents:
diff
changeset
|
14 EXPOSE 9049 |
454
ccde9f432e4e
WIP speechmusic to load from http, but pulseaudio out is broken
drewp@bigasterisk.com
parents:
453
diff
changeset
|
15 RUN mkdir /sounds |
359
b3959142d7d8
move speech_music into docker and into pygame
drewp@bigasterisk.com
parents:
diff
changeset
|
16 |
664 | 17 CMD [ "python", "./playSound.py" ] |