| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- FROM debian:jessie
- MAINTAINER Matthias Kleine <info@haus-automatisierung.com>
- ENV FHEM_VERSION 5.8
- ENV DEBIAN_FRONTEND noninteractive
- ENV TERM xterm
- # Install dependencies
- RUN apt-get update && apt-get upgrade -y --force-yes && apt-get install -y --force-yes --no-install-recommends apt-utils
- RUN apt-get -y --force-yes install \
- perl \
- wget \
- git \
- apt-transport-https \
- sudo etherwake \
- dfu-programmer \
- build-essential \
- snmpd \
- snmp \
- vim \
- telnet \
- usbutils \
- sqlite3
- # Install perl packages
- RUN apt-get -y --force-yes install \
- libavahi-compat-libdnssd-dev \
- libalgorithm-merge-perl \
- libclass-dbi-mysql-perl \
- libclass-isa-perl \
- libcommon-sense-perl \
- libdatetime-format-strptime-perl \
- libdbi-perl \
- libdevice-serialport-perl \
- libdpkg-perl \
- liberror-perl \
- libfile-copy-recursive-perl \
- libfile-fcntllock-perl \
- libio-socket-ip-perl \
- libio-socket-ssl-perl \
- libjson-perl \
- libjson-xs-perl \
- libmail-sendmail-perl \
- libsocket-perl \
- libswitch-perl \
- libsys-hostname-long-perl \
- libterm-readkey-perl \
- libterm-readline-perl-perl \
- libwww-perl \
- libxml-simple-perl \
- libdbd-sqlite3-perl \
- libtext-diff-perl
- # Install fhem
- RUN echo Europe/Berlin > /etc/timezone && dpkg-reconfigure tzdata
- RUN wget https://fhem.de/fhem-${FHEM_VERSION}.deb && dpkg -i fhem-${FHEM_VERSION}.deb
- RUN userdel fhem
- WORKDIR "/opt/fhem"
- COPY data/fhem.cfg.example ./fhem.cfg
- COPY start.sh ./
- EXPOSE 8083 7072
- CMD bash /opt/fhem/start.sh
|