-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
42 lines (24 loc) · 1012 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
40
41
42
FROM ubuntu:focal
RUN apt update -y && apt upgrade -y
RUN apt install python3 python3-pip -y
ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/$CONTAINER_TIMEZONE /etc/localtime && echo $CONTAINER_TIMEZONE > /etc/timezone
RUN apt install bluez -y
RUN apt install build-essential libglib2.0-dev libical-dev libreadline-dev libudev-dev libdbus-1-dev libdbus-glib-1-dev bluetooth libbluetooth-dev usbutils -y
# fix of the issue on dbus-fast that was making the build stuck. [https://github.com/Bluetooth-Devices/dbus-fast/issues/237]
RUN export SKIP_CYTHON=false
RUN pip3 install idasen-controller==2.2.0
RUN apt-get update
RUN apt-get install curl -y
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install nodejs -y
COPY package.json /
RUN npm i
# following is needed as it installs the `unbuffer` command
RUN apt-get install expect -y
COPY run.sh /
COPY index.js /
# following for debugging purpose if needed
# COPY mock.sh /
RUN chmod a+x /run.sh
CMD [ "/run.sh" ]