Skip to content

Commit

Permalink
docker: define config volume and HOME in all images
Browse files Browse the repository at this point in the history
This is required for using a custom .ndn configuration and running
as a non-root user.

Change-Id: Id1d07e524d9bce3e81174c65aa04cc79a943b5a2
  • Loading branch information
pulsejet committed May 7, 2024
1 parent c3bf8ad commit ec352f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ RUN --mount=from=build,source=/deps,target=/deps \
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"]
Expand All @@ -55,6 +57,8 @@ RUN --mount=from=build,source=/deps,target=/deps \
python3 \
&& apt-get distclean

ENV HOME=/config
VOLUME /config
VOLUME /run/nfd

EXPOSE 8080/tcp
Expand Down

0 comments on commit ec352f2

Please sign in to comment.