Thumbnail

rani/matterbridge.git

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

Viewing file on branch master

1FROM alpine AS builder
2
3COPY . /go/src/matterbridge
4RUN apk add \
5 go \
6 git \
7 && cd /go/src/matterbridge \
8 && CGO_ENABLED=0 go build -tags goolm -mod vendor -ldflags "-X github.com/matterbridge-org/matterbridge/version.GitHash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge
9
10FROM alpine
11RUN apk --no-cache add \
12 ca-certificates \
13 cairo \
14 libjpeg-turbo \
15 libwebp-dev \
16 mailcap \
17 py3-webencodings \
18 python3 \
19 && apk --no-cache add --virtual .compile \
20 gcc \
21 libffi-dev \
22 libjpeg-turbo-dev \
23 musl-dev \
24 py3-pip \
25 py3-wheel \
26 python3-dev \
27 zlib-dev \
28 && pip3 install --no-cache-dir lottie[PNG] \
29 && apk --no-cache del .compile
30
31COPY --from=builder /bin/matterbridge /bin/matterbridge
32RUN mkdir /etc/matterbridge \
33 && touch /etc/matterbridge/matterbridge.toml \
34 && ln -sf /matterbridge.toml /etc/matterbridge/matterbridge.toml
35ENTRYPOINT ["/bin/matterbridge", "-conf", "/etc/matterbridge/matterbridge.toml"]
36