forked from justintime/docker-airsonos
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
30 lines (21 loc) · 854 Bytes
/
Dockerfile
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
FROM hypriot/rpi-node:0.12.0
MAINTAINER Marcel Steinbach <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /root
ADD supervisord.conf /build/
ADD dbus.sh /build/
RUN /usr/sbin/usermod -u 99 nobody && \
/usr/sbin/usermod -g 100 nobody && \
apt-get -q update && apt-get install -qy \
supervisor \
build-essential \
libavahi-compat-libdnssd-dev \
libasound2-dev \
git && \
mkdir -p /var/log/supervisor
RUN export USER=root && npm install -g babel@5
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN git clone https://github.com/stephen/airsonos && cd airsonos && git reset --hard 50d70ce && export USER=root && npm install -g --unsafe-perm
RUN chmod +x /build/dbus.sh
EXPOSE 5000 5001 5002 5003 5004 5005 5006 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015
CMD ["/usr/bin/supervisord"]