FROM alpine MAINTAINER Osbert Feng # since 2019-09-05 MAINTAINER Pascal Gollor <kalle@pgollor.de> ENV DASH_MAC_ADDRESS ENV URL_CALLBACK USER root RUN apk updage RUN apk add python-scapy python-requests #RUN apt-get update -qq && apt-get install -qq -y python-scapy tcpdump tcpreplay wireshark python-requests RUN rm -rf /var/cache/apk/* RUN useradd -m -s /bin/bash amzn-dash RUN echo amzn-dash:amzn-dash | chpasswd USER root ADD dash-listen.py /home/amzn-dash/dash-listen.py CMD python /home/amzn-dash/dash-listen.py # NOTE: To run this, you must link against the host networking stack # docker run --net=host -e DASH_MAC_ADDRESS=<use-dash-probe> -e URL_CALLBACK=http://url/to/callback dash-listen