Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 1a8fa239cb77ce500d588543d5368977581f0fa0 Author: xnaas <8271327+xnaas@users.noreply.github.com> Date: Sun May 24 15:01:52 2020 +0000 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. diff --git a/Dockerfile b/Dockerfile index 2f0a1b0..8b1a099 100644 --- a/Dockerfile +++ b/Dockerfile @@ -104 +107 @@ 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"]