Forked from https://bitbucket.org/AlekseevAV/noolite-mtrf-to-mqtt/
[mqtt-noolite.git] / Dockerfile
1 FROM alpine:latest
2
3 MAINTAINER Aleksandr Alekseev
4
5 ENV mtrf_serial_port_env=/dev/tty.mtrf_serial_port \
6     mqtt_scheme=mqtt \
7     mqtt_host=127.0.0.1 \
8     mqtt_port=__EMPTY__ \
9     mqtt_user=__EMPTY__ \
10     mqtt_password=__EMPTY__ \
11     commands_delay=0.1 \
12     logging_level=INFO
13
14 RUN apk --update add python3 && rm -rf /var/cache/apk/*
15
16 RUN pip3 install --upgrade noolite-mtrf-mqtt
17
18 CMD noolite_mtrf_mqtt \
19         --mtrf-serial-port=$mtrf_serial_port_env \
20         --mqtt-scheme=$mqtt_scheme \
21         --mqtt-host=$mqtt_host \
22         --mqtt-port=$mqtt_port \
23         --mqtt-user=$mqtt_user \
24         --mqtt-password=$mqtt_password \
25         --commands-delay=$commands_delay \
26         --logging-level=$logging_level