Dockerfile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. FROM debian:jessie
  2. MAINTAINER Matthias Kleine <info@haus-automatisierung.com>
  3. ENV DEBIAN_FRONTEND noninteractive
  4. ENV TERM xterm
  5. # Install dependencies
  6. RUN apt-get update && apt-get upgrade -y --force-yes && apt-get install -y --force-yes --no-install-recommends apt-utils
  7. RUN apt-get -y --force-yes install perl wget git apt-transport-https sudo etherwake dfu-programmer build-essential snmpd snmp vim telnet usbutils
  8. # Install perl packages
  9. RUN apt-get -y --force-yes install \
  10. libavahi-compat-libdnssd-dev \
  11. libalgorithm-merge-perl \
  12. libclass-dbi-mysql-perl \
  13. libclass-isa-perl \
  14. libcommon-sense-perl \
  15. libdatetime-format-strptime-perl \
  16. libdbi-perl \
  17. libdevice-serialport-perl \
  18. libdpkg-perl \
  19. liberror-perl \
  20. libfile-copy-recursive-perl \
  21. libfile-fcntllock-perl \
  22. libio-socket-ip-perl \
  23. libio-socket-ssl-perl \
  24. libjson-perl \
  25. libjson-xs-perl \
  26. libmail-sendmail-perl \
  27. libsocket-perl \
  28. libswitch-perl \
  29. libsys-hostname-long-perl \
  30. libterm-readkey-perl \
  31. libterm-readline-perl-perl \
  32. libwww-perl \
  33. libxml-simple-perl
  34. # Install fhem
  35. RUN echo Europe/Berlin > /etc/timezone && dpkg-reconfigure tzdata
  36. RUN wget https://debian.fhem.de/fhem.deb && dpkg -i fhem.deb
  37. RUN cd /opt/fhem/www/ && git clone https://github.com/klein0r/fhem-style-haus-automatisierung.git hausautomatisierung-com && chown -R fhem:dialout /opt/fhem/www/hausautomatisierung-com
  38. WORKDIR "/opt/fhem"
  39. COPY start.sh ./
  40. EXPOSE 8083 7072
  41. CMD bash /opt/fhem/start.sh