mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-09 16:50:30 +00:00
e3ffbcadd8
* zulip: Treat unknown errors with a 10-second backoff. An unknown error (including an unauthorized error) would fall through with no calls to time.Sleep, resulting in hammering the server as quickly as possible. Add a 10-second sleep in the default error case. The heartbeat is left with no explicit sleep, but all other codepaths now contain one. * version: Move version information into a separate package. This will allow it to be accessed by other sections of the code. * zulip: Use the matterbridge version in the user-agent. Co-authored-by: Wim <wim@42.be>
15 lines
633 B
Docker
15 lines
633 B
Docker
FROM alpine:edge AS builder
|
|
|
|
COPY . /go/src/matterbridge
|
|
RUN apk --no-cache add go git \
|
|
&& cd /go/src/matterbridge \
|
|
&& CGO_ENABLED=0 go build -mod vendor -ldflags "-X github.com/42wim/matterbridge/version.GitHash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge
|
|
|
|
FROM alpine
|
|
RUN apk --no-cache add ca-certificates mailcap
|
|
COPY --from=builder /bin/matterbridge /bin/matterbridge
|
|
RUN mkdir /etc/matterbridge \
|
|
&& touch /etc/matterbridge/matterbridge.toml \
|
|
&& ln -sf /matterbridge.toml /etc/matterbridge/matterbridge.toml
|
|
ENTRYPOINT ["/bin/matterbridge", "-conf", "/etc/matterbridge/matterbridge.toml"]
|