blob: d67cc4cb0c4885c58f18226ca90c3fb35abcfba6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
FROM archlinux/base:latest
RUN pacman -Syyu --noconfirm
RUN pacman --noconfirm --needed -S python-pip
RUN pip install paho-mqtt
RUN mkdir -p /opt/paho
COPY paho-inspection.py /opt/paho/
WORKDIR /opt/paho
ARG HOST_HOSTNAME
RUN echo $HOST_HOSTNAME >host
CMD ["/bin/bash", "-c", "/usr/sbin/python paho-inspection.py $(cat host)"]
|