forked from holoarts/fhem-signal-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.x86
29 lines (22 loc) · 1.03 KB
/
Dockerfile.x86
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
FROM ghcr.io/fhem/fhem/fhem-docker:bullseye
MAINTAINER holoarts<[email protected]>
ARG SIGNALVERSION="0.11.4"
ENV DEBIAN_FRONTEND noninteractive
ENV TERM xterm
# Install dependencies
RUN apt-get update
RUN apt-get -q -y install openjdk-17-jre-headless
RUN apt-get -q -y install zip
RUN apt-get clean && apt-get autoremove
WORKDIR "/tmp"
RUN wget -qN https://github.com/AsamK/signal-cli/releases/download/v$SIGNALVERSION/signal-cli-$SIGNALVERSION-Linux.tar.gz -O signal-cli-$SIGNALVERSION.tar.gz
RUN tar zxf signal-cli-$SIGNALVERSION.tar.gz
RUN mv signal-cli-$SIGNALVERSION /opt/signal
RUN wget -qN https://github.com/bublath/FHEM-Signalbot/raw/main/amd64-glibc2.31-0.11.2/libsignal_jni.so
RUN zip -u /opt/signal/lib/libsignal-client-*.jar libsignal_jni.so
RUN rm -f signal-cli-$SIGNALVERSION.tar.gz libsignal_jni.so
RUN cpan install Protocol::DBus
COPY org.asamk.Signal.conf /etc/dbus-1/system.d/org.asamk.Signal.conf
COPY org.asamk.Signal.service /usr/share/dbus-1/system-services/org.asamk.Signal.service
COPY pre-start.sh /docker/
# End Dockerfile