1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-25 16:28:40 +00:00
dockerfiles/ot-recorder/Dockerfile
2019-10-02 08:12:13 +08:00

30 lines
768 B
Docker

#
# Dockerfile for ot-recorder
#
FROM debian:buster
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apt-get update \
&& apt-get install -y curl gnupg \
&& curl -sSL http://repo.owntracks.org/repo.owntracks.org.gpg.key | apt-key add - \
&& echo 'deb http://repo.owntracks.org/debian buster main' > /etc/apt/sources.list.d/owntracks.list \
&& apt-get update \
&& apt-get install -y ot-recorder \
&& rm -rf /var/lib/apt/lists/*
ENV OTR_HOST iot.eclipse.org
ENV OTR_PORT 1883
ENV OTR_HTTPHOST 0.0.0.0
ENV OTR_HTTPPORT 8083
ENV OTR_TOPICS owntracks/#
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store
VOLUME $OTR_STORAGEDIR
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 8083