1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-24 05:17:06 +02:00

30 lines
782 B
Docker
Raw Normal View History

2017-03-31 16:35:00 +08:00
#
# Dockerfile for ot-recorder
#
2019-10-01 21:20:17 +08:00
FROM debian:buster
2017-03-31 16:35:00 +08:00
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apt-get update \
2017-08-10 16:16:40 +08:00
&& apt-get install -y curl gnupg \
2017-03-31 16:35:00 +08:00
&& curl -sSL http://repo.owntracks.org/repo.owntracks.org.gpg.key | apt-key add - \
2019-10-01 21:20:17 +08:00
&& echo 'deb http://repo.owntracks.org/debian buster main' > /etc/apt/sources.list.d/owntracks.list \
2017-03-31 16:35:00 +08:00
&& apt-get update \
2020-09-29 16:27:45 +08:00
&& apt-get install -y ot-recorder || true \
2017-03-31 16:35:00 +08:00
&& rm -rf /var/lib/apt/lists/*
2020-09-16 19:01:06 +08:00
ENV OTR_HOST mqtt.eclipse.org
2017-03-31 16:35:00 +08:00
ENV OTR_PORT 1883
2017-05-22 21:53:26 +08:00
ENV OTR_HTTPHOST 0.0.0.0
ENV OTR_HTTPPORT 8083
2019-10-02 08:12:13 +08:00
ENV OTR_TOPICS owntracks/#
2019-10-01 22:47:40 +08:00
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store
2017-03-31 16:35:00 +08:00
VOLUME $OTR_STORAGEDIR
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
2021-10-28 18:31:36 +08:00
EXPOSE 8083 8085