Dockerfile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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
  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 wget -qO - https://debian.fhem.de/archive.key | apt-key add -
  36. RUN echo "deb https://debian.fhem.de/stable ./" | tee -a /etc/apt/sources.list.d/fhem.list
  37. RUN apt-get update
  38. RUN apt-get -y --force-yes install fhem telnet
  39. RUN echo Europe/Berlin > /etc/timezone && dpkg-reconfigure tzdata
  40. 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
  41. WORKDIR "/opt/fhem"
  42. COPY start.sh ./
  43. EXPOSE 8083 7072
  44. CMD bash /opt/fhem/start.sh