Thumbnail

rani/matterbridge.git

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

Viewing file on branch master

1FROM golang:alpine AS builder
2
3# allow to cache the go mod download
4COPY go.mod go.sum ./
5RUN go mod download
6
7COPY . /go/src/matterbridge
8
9RUN apk --no-cache add git gcc musl-dev
10RUN cd /go/src/matterbridge && \
11 CGO_ENABLED=1 go build -tags goolm -ldflags "-X github.com/matterbridge-org/matterbridge/version.GitHash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge
12
13FROM alpine
14RUN apk --no-cache add ca-certificates mailcap
15COPY --from=builder /bin/matterbridge /bin/matterbridge
16RUN mkdir /etc/matterbridge \
17 && touch /etc/matterbridge/matterbridge.toml \
18 && ln -sf /matterbridge.toml /etc/matterbridge/matterbridge.toml
19ENTRYPOINT ["/bin/matterbridge", "-conf", "/etc/matterbridge/matterbridge.toml"]
20