Our great sponsors
-
Adafruit_Python_DHT
Discontinued Python library to read the DHT series of humidity and temperature sensors on a Raspberry Pi or Beaglebone Black.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
# BUILD IMAGE FROM arm32v6/python:2.7-alpine3.7 as builder RUN apk --no-cache add git build-base WORKDIR /home RUN git clone https://github.com/adafruit/Adafruit_Python_DHT.git && \ cd Adafruit_Python_DHT && \ python setup.py install COPY startup.sh startup.sh COPY home_iot home_iot RUN pip install influxdb==5.0.0 ## RUNTIME IMAGE FROM arm32v6/python:2.7-alpine3.7 RUN apk --no-cache add ca-certificates COPY --from=builder /usr/local/lib/python2.7 /usr/local/lib/python2.7 COPY --from=builder /home/home_iot /home/home_iot COPY --from=builder /home/startup.sh /home/startup.sh RUN chmod a+x /home/startup.sh WORKDIR /home #RUN echo '* * * * * python home_iot/check_indoor_weather.py' > /etc/crontabs/root CMD ['/usr/sbin/crond', '-l 2', '-f']
A little off topic from your post, but you should check out Supercronic - https://github.com/aptible/supercronic