Dockerfile 784 B

123456789101112131415161718192021222324252627
  1. #
  2. # Dockerfile for Rpi-Domoticz
  3. #
  4. # Based on version by LBTM
  5. #
  6. # Base image.
  7. FROM resin/rpi-raspbian:jessie-20161026
  8. MAINTAINER Florian Chauveau
  9. # Install Domoticz from sources.
  10. RUN \
  11. apt-get update && \
  12. apt-get install -y cmake apt-utils build-essential && \
  13. apt-get install -y libboost-dev libboost-thread-dev libboost-system-dev libsqlite3-dev subversion curl libcurl4-openssl-dev libusb-dev zlib1g-dev && \
  14. apt-get clean && \
  15. apt-get autoclean && \
  16. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  17. # Expose port.
  18. EXPOSE 80
  19. CMD ["/root/domoticz/domoticz", "-www", "80"]
  20. # https://releases.domoticz.com/releases/release/domoticz_linux_armv7l.tgz
  21. ADD domoticz_linux_armv7l.tgz /root/domoticz
  22. HEALTHCHECK --interval=10s CMD curl -sS --fail http://localhost:80 || exit 1