Dockerfile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. FROM debian:stretch
  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. libcrypt-cbc-perl \
  32. libcrypt-ecb-perl \
  33. libcrypt-urandom-perl \
  34. libcgi-pm-perl \
  35. libcommon-sense-perl \
  36. libconvert-base32-perl \
  37. libcrypt-urandom-perl \
  38. libdata-dump-perl \
  39. libdatetime-format-strptime-perl \
  40. libdbd-sqlite3-perl \
  41. libdbi-perl \
  42. libdevice-serialport-perl \
  43. libdigest-md5-perl \
  44. libdpkg-perl \
  45. liberror-perl \
  46. libfile-copy-recursive-perl \
  47. libfile-fcntllock-perl \
  48. libgd-graph-perl \
  49. libgd-text-perl \
  50. libimage-info-perl \
  51. libimage-librsvg-perl \
  52. libio-socket-inet6-perl \
  53. libio-socket-ip-perl \
  54. libio-socket-multicast-perl \
  55. libio-socket-ssl-perl \
  56. libimage-info-perl \
  57. libimage-librsvg-perl \
  58. libjson-perl \
  59. libjson-xs-perl \
  60. liblist-moreutils-perl \
  61. libmail-imapclient-perl \
  62. libmail-sendmail-perl \
  63. libmime-base64-perl \
  64. libnet-telnet-perl \
  65. libsoap-lite-perl \
  66. libsocket-perl \
  67. libsocket6-perl \
  68. libswitch-perl \
  69. libsys-hostname-long-perl \
  70. libterm-readkey-perl \
  71. libterm-readline-perl-perl \
  72. libtext-csv-perl \
  73. libtext-diff-perl \
  74. libtimedate-perl \
  75. libwww-perl \
  76. libxml-simple-perl \
  77. libhtml-tableextract-perl
  78. RUN cpan Crypt::Rijndael_PP
  79. RUN cpan Net::MQTT::Simple
  80. RUN cpan Net::MQTT::Constants
  81. # Install fhem
  82. RUN echo Europe/Berlin > /etc/timezone && dpkg-reconfigure tzdata
  83. RUN wget https://fhem.de/fhem-${FHEM_VERSION}.deb && dpkg -i fhem-${FHEM_VERSION}.deb
  84. RUN userdel fhem
  85. WORKDIR "/opt/fhem"
  86. COPY core/start.sh ./
  87. EXPOSE 8083 7072
  88. CMD bash /opt/fhem/start.sh