docker: define config volume and HOME in all images
This is required for using a custom .ndn configuration and running
as a non-root user.
Change-Id: Id1d07e524d9bce3e81174c65aa04cc79a943b5a2
diff --git a/Dockerfile b/Dockerfile
index 2f51138..17a0a75 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -39,6 +39,8 @@
apt-get install -Uy --no-install-recommends $(cat /deps/nfd-autoreg) \
&& apt-get distclean
+ENV HOME=/config
+VOLUME /config
VOLUME /run/nfd
ENTRYPOINT ["/usr/bin/nfd-autoreg"]
@@ -55,6 +57,8 @@
python3 \
&& apt-get distclean
+ENV HOME=/config
+VOLUME /config
VOLUME /run/nfd
EXPOSE 8080/tcp