From 9186586740a7bd076156a4e02800756e4e72698c Mon Sep 17 00:00:00 2001 From: Giovanni Angoli Date: Mon, 26 Sep 2016 10:03:37 +0200 Subject: [PATCH] Dockerfile based on debian/jessie Image, minor edit to launcher.sh --- Dockerfile | 5 ++--- launcher.sh | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b33e75e..6e5773f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:latest +FROM debian:jessie LABEL version="0.4" description="Mosquitto and OwnTracks Recorder" MAINTAINER Jan-Piet Mens @@ -6,12 +6,11 @@ RUN apt-get update && apt-get install -y wget && \ wget -q -O /tmp/owntracks.gpg.key http://repo.owntracks.org/repo.owntracks.org.gpg.key && \ apt-key add /tmp/owntracks.gpg.key RUN apt-get install -y software-properties-common && \ - apt-add-repository ppa:mosquitto-dev/mosquitto-ppa && \ apt-add-repository 'deb http://repo.owntracks.org/debian jessie main' && \ apt-get update && \ apt-get install -y \ libmosquitto1 \ - libsodium18 \ + libsodium13 \ libcurl3 \ liblua5.2-0 \ mosquitto \ diff --git a/launcher.sh b/launcher.sh index 13acf11..5ca04ac 100644 --- a/launcher.sh +++ b/launcher.sh @@ -34,7 +34,7 @@ fi # --- for Mosquitto's persistence mkdir -p /owntracks/mosquitto -chown mosquitto:mosquitto /owntracks/mosquitto +chown mosquitto:nogroup /owntracks/mosquitto # Prime Mosquitto's configuration in volume if it doesn't yet exist there. # Mosquitto will launch with that, allowing the admin to modify config