-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (38 loc) · 1.46 KB
/
Dockerfile
File metadata and controls
54 lines (38 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM resin/rpi-raspbian
LABEL version="0.1beta"
LABEL maintainer=<albert@it-weis.net>
ENV FHEM_VERSION 5.8
RUN apt-get update && \
apt-get -qy install perl \
libdevice-serialport-perl \
libio-socket-ssl-perl \
wget \
apt-utils \
apt-transport-https \
libwww-perl \
libcgi-pm-perl \
libjson-perl \
sqlite3 \
libdbd-sqlite3-perl \
libtext-diff-perl \
usbutils
# make
#RUN export PERL_MM_USE_DEFAULT=1 && \
# cpan -i Module::Pluggable
RUN wget http://fhem.de/fhem-$FHEM_VERSION.deb
RUN dpkg -i fhem-$FHEM_VERSION.deb
RUN rm fhem-$FHEM_VERSION.deb
RUN apt-get install -f
# Some additions to the standard fhem.cfg
RUN echo 'attr global nofork 1\n' >> /opt/fhem/fhem.cfg && \
echo 'attr WEB editConfig 1\n' >> /opt/fhem/fhem.cfg && \
echo 'attr WEB csrfToken none\n' >> /opt/fhem/fhem.cfg && \
echo 'attr WEBphone csrfToken none\n' >> /opt/fhem/fhem.cfg && \
echo 'attr WEBtablet csrfToken none\n' >> /opt/fhem/fhem.cfg
#RUN addgroup fhem && \
# adduser -D -G fhem -h /opt/fhem -u 1000 fhem
#EXPOSE 8083 8084 8085 7072
EXPOSE 8083
WORKDIR /opt/fhem
#CMD perl fhem.pl fhem.cfg
CMD /etc/init.d/fhem start