Dockerfile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. perl \
  10. wget \
  11. git \
  12. apt-transport-https \
  13. sudo etherwake \
  14. dfu-programmer \
  15. build-essential \
  16. snmpd \
  17. snmp \
  18. vim \
  19. telnet \
  20. usbutils \
  21. sqlite3
  22. # Install perl packages
  23. RUN apt-get -y --force-yes install \
  24. libavahi-compat-libdnssd-dev \
  25. libalgorithm-merge-perl \
  26. libclass-dbi-mysql-perl \
  27. libclass-isa-perl \
  28. libcommon-sense-perl \
  29. libdatetime-format-strptime-perl \
  30. libdbi-perl \
  31. libdevice-serialport-perl \
  32. libdpkg-perl \
  33. liberror-perl \
  34. libfile-copy-recursive-perl \
  35. libfile-fcntllock-perl \
  36. libio-socket-ip-perl \
  37. libio-socket-ssl-perl \
  38. libjson-perl \
  39. libjson-xs-perl \
  40. libmail-sendmail-perl \
  41. libsocket-perl \
  42. libswitch-perl \
  43. libsys-hostname-long-perl \
  44. libterm-readkey-perl \
  45. libterm-readline-perl-perl \
  46. libwww-perl \
  47. libxml-simple-perl \
  48. libdbd-sqlite3-perl \
  49. libtext-diff-perl
  50. # Install fhem
  51. RUN echo Europe/Berlin > /etc/timezone && dpkg-reconfigure tzdata
  52. RUN wget https://fhem.de/fhem-${FHEM_VERSION}.deb && dpkg -i fhem-${FHEM_VERSION}.deb
  53. 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
  54. RUN userdel fhem
  55. WORKDIR "/opt/fhem"
  56. COPY data/fhem.cfg.example ./fhem.cfg
  57. COPY start.sh ./
  58. EXPOSE 8083 7072
  59. CMD bash /opt/fhem/start.sh