-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (28 loc) · 907 Bytes
/
Dockerfile
File metadata and controls
39 lines (28 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM balenalib/raspberrypi3-debian:stretch
ENV DBUS_SYSTEM_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket
ENV UDEV=1
RUN install_packages \
alsa-utils \
bluealsa \
bluez \
python-dbus \
python-gobject \
python-gpiozero \
supervisor
# Copy sounds
#COPY sounds /usr/src/sounds
# Setup udev rules - this lets us play the connect/disconnect sound,
# turn off discover/pairing when a client is connected
# and also run a python script
COPY bluetooth-udev /usr/src/
RUN chmod +x /usr/src/bluetooth-udev
COPY udev-rules/ /etc/udev/rules.d/
#COPY bluetooth-scripts/ /usr/src/bluetooth-scripts/
# Bluetooth-agent handles the auth of devices
COPY bluetooth-agent /usr/src/
RUN chmod +x /usr/src/bluetooth-agent
COPY start.sh /usr/src/
RUN chmod +x /usr/src/start.sh
COPY .asoundrc /root/.asoundrc
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
CMD ["/usr/bin/supervisord"]