summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxnaas <8271327+xnaas@users.noreply.github.com>2020-05-24 15:01:52 -0500
committerGitHub <noreply@github.com>2020-05-24 22:01:52 +0200
commitddc262593449357e4d0399af82d26cee0fb65c45 (patch)
tree1ec797cce7524462f1a0e7a1a0bfcda7860468d0
parent7f7ca697a0a48f0e82cb0309ee1dfcd15ba60cd7 (diff)
downloadmatterbridge-msglm-ddc262593449357e4d0399af82d26cee0fb65c45.tar.gz
matterbridge-msglm-ddc262593449357e4d0399af82d26cee0fb65c45.tar.bz2
matterbridge-msglm-ddc262593449357e4d0399af82d26cee0fb65c45.zip
Update Dockerfile so inotify works (#1148)
This change would be required for the Docker image to actually read `RELOADABLE` config options from the `matterbridge.toml`. This edit would require https://github.com/42wim/matterbridge/wiki/Deploy:-Docker to be updated as well to mention that mounting would have to change to mounting a ***directory*** not a file. inotify inside Docker cannot read directly mounted files, only directories, for whatever reason. This will preserve setups that were configured to run the old way without breaking them and new configs can be setup "correctly" without issue.
-rw-r--r--Dockerfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 2f0a1b02..8b1a099e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -10,4 +10,7 @@ RUN apk update && apk add go git gcc musl-dev \
FROM alpine:edge
RUN apk --no-cache add ca-certificates mailcap
COPY --from=builder /bin/matterbridge /bin/matterbridge
-ENTRYPOINT ["/bin/matterbridge"]
+RUN mkdir /etc/matterbridge
+RUN touch /etc/matterbridge/matterbridge.toml
+RUN ln -sf /matterbridge.toml /etc/matterbridge/matterbridge.toml
+ENTRYPOINT ["/bin/matterbridge", "-conf", "/etc/matterbridge/matterbridge.toml"]