Dockerfile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 libavahi-compat-libdnssd-dev sudo nodejs etherwake
  8. # Install perl packages
  9. RUN apt-get -y --force-yes install libalgorithm-merge-perl \
  10. libclass-isa-perl \
  11. libcommon-sense-perl \
  12. libdevice-serialport-perl \
  13. libdpkg-perl \
  14. liberror-perl \
  15. libfile-copy-recursive-perl \
  16. libfile-fcntllock-perl \
  17. libio-socket-ip-perl \
  18. libio-socket-ssl-perl \
  19. libjson-perl \
  20. libjson-xs-perl \
  21. libmail-sendmail-perl \
  22. libsocket-perl \
  23. libswitch-perl \
  24. libsys-hostname-long-perl \
  25. libterm-readkey-perl \
  26. libterm-readline-perl-perl \
  27. libwww-perl \
  28. libxml-simple-perl
  29. # Install fhem
  30. RUN wget -qO - https://debian.fhem.de/archive.key | apt-key add -
  31. RUN echo "deb https://debian.fhem.de/stable ./" | tee -a /etc/apt/sources.list.d/fhem.list
  32. RUN apt-get update
  33. RUN apt-get -y --force-yes install fhem telnet
  34. RUN echo Europe/Berlin > /etc/timezone && dpkg-reconfigure tzdata
  35. RUN chown fhem /opt/fhem/fhem.cfg
  36. VOLUME ["/opt/fhem"]
  37. EXPOSE 8083