Dockerfile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. FROM debian:jessie
  2. MAINTAINER Matthias Kleine <info@haus-automatisierung.com>
  3. ENV FHEM_VERSION 5.8
  4. ENV DEBIAN_FRONTEND noninteractive
  5. ENV TERM xterm
  6. # Install dependencies
  7. RUN apt-get update && apt-get upgrade -y --force-yes && apt-get install -y --force-yes --no-install-recommends apt-utils
  8. RUN apt-get -y --force-yes install \
  9. apt-transport-https \
  10. build-essential \
  11. dfu-programmer \
  12. etherwake \
  13. git \
  14. perl \
  15. snmp \
  16. snmpd \
  17. sqlite3 \
  18. sudo \
  19. telnet \
  20. usbutils \
  21. vim \
  22. wget
  23. # Install perl packages
  24. RUN apt-get -y --force-yes install \
  25. libalgorithm-merge-perl \
  26. libauthen-oath-perl \
  27. libavahi-compat-libdnssd-dev \
  28. libcgi-pm-perl \
  29. libclass-dbi-mysql-perl \
  30. libclass-isa-perl \
  31. libcommon-sense-perl \
  32. libconvert-base32-perl \
  33. libcrypt-urandom-perl \
  34. libdata-dump-perl \
  35. libdatetime-format-strptime-perl \
  36. libdbd-sqlite3-perl \
  37. libdbi-perl \
  38. libdevice-serialport-perl \
  39. libdpkg-perl \
  40. liberror-perl \
  41. libfile-copy-recursive-perl \
  42. libfile-fcntllock-perl \
  43. libgd-graph-perl \
  44. libgd-text-perl \
  45. libimage-info-perl \
  46. libimage-librsvg-perl \
  47. libio-socket-inet6-perl \
  48. libio-socket-ip-perl \
  49. libio-socket-multicast-perl \
  50. libio-socket-ssl-perl \
  51. libjson-perl \
  52. libjson-xs-perl \
  53. liblist-moreutils-perl \
  54. libmail-imapclient-perl \
  55. libmail-sendmail-perl \
  56. libmime-base64-perl \
  57. libnet-telnet-perl \
  58. libsoap-lite-perl \
  59. libsocket-perl \
  60. libsocket6-perl \
  61. libswitch-perl \
  62. libsys-hostname-long-perl \
  63. libterm-readkey-perl \
  64. libterm-readline-perl-perl \
  65. libtext-csv-perl \
  66. libtext-diff-perl \
  67. libtimedate-perl \
  68. libwww-perl \
  69. libxml-simple-perl
  70. # Install fhem
  71. RUN echo Europe/Berlin > /etc/timezone && dpkg-reconfigure tzdata
  72. RUN wget https://fhem.de/fhem-${FHEM_VERSION}.deb && dpkg -i fhem-${FHEM_VERSION}.deb
  73. RUN userdel fhem
  74. WORKDIR "/opt/fhem"
  75. COPY core/start.sh ./
  76. EXPOSE 8083 7072
  77. CMD bash /opt/fhem/start.sh