-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
39 lines (33 loc) · 990 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
31
32
33
34
35
36
37
38
39
FROM resin/armv7hf-debian:stretch
# Build environment variables
ENV MON_VER=0.1.675 \
CREATED="BLOODY2k" \
MON_OPT=""
RUN apt-get update && apt-get -y install gnupg
# GET Mosquitto key for apt
ADD http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key /mosquitto-repo.gpg.key
RUN apt-key add /mosquitto-repo.gpg.key
ADD http://repo.mosquitto.org/debian/mosquitto-stretch.list /etc/apt/sources.list.d/mosquitto-st$
RUN apt-cache search mosquitto
# Install Monitor dependencies
RUN apt-get update && \
apt-get install -y \
bluez \
bluez-tools \
libbluetooth-dev \
libmosquitto-dev \
mosquitto \
mosquitto-clients \
xxd \
bc \
bluez-hcidump \
git \
wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ADD startup.sh /startup.sh
# Install Monitor
#WORKDIR /
#RUN git clone git://github.com/andrewjfreyer/monitor
RUN ["chmod", "+x", "/startup.sh"]
ENTRYPOINT ["/startup.sh"]