Added Dockerfile
This commit is contained in:
@@ -12,12 +12,14 @@
|
||||
#
|
||||
# docker run --name rtl_433 -d -e MQTT_HOST=<mqtt-broker.example.com> --privileged -v /dev/bus/usb:/dev/bus/usb <image>
|
||||
|
||||
#FROM ubuntu:latest
|
||||
FROM python:3.6.3
|
||||
MAINTAINER Marco Verleun
|
||||
|
||||
LABEL Description="This image is used to start a script that will monitor for events on 433,92 Mhz" Vendor="MarCoach" Version="1.0"
|
||||
|
||||
# Install additional modules
|
||||
RUN pip install paho-mqtt
|
||||
|
||||
#
|
||||
# First install software packages needed to compile rtl_433 and to publish MQTT events
|
||||
#
|
||||
@@ -42,14 +44,14 @@ RUN git clone https://github.com/merbanan/rtl_433.git \
|
||||
&& make install
|
||||
|
||||
#
|
||||
# Copy my script and make it executable
|
||||
# Copy config, script and make it executable
|
||||
#
|
||||
COPY rtl2mqtt.py /scripts/rtl2mqtt.py
|
||||
COPY config.py /scripts/config.py
|
||||
RUN chmod +x /scripts/rtl2mqtt.py
|
||||
|
||||
#
|
||||
# When running a container this script will be executed
|
||||
#
|
||||
# Install additional modules
|
||||
RUN pip install paho-mqtt
|
||||
#
|
||||
|
||||
ENTRYPOINT ["/scripts/rtl2mqtt.py"]
|
||||
|
||||
Reference in New Issue
Block a user