Skip to content

Instantly share code, notes, and snippets.

@paulcarroty
Last active August 23, 2021 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulcarroty/46639ae64543ec50ef195ba2888cd3ef to your computer and use it in GitHub Desktop.
Save paulcarroty/46639ae64543ec50ef195ba2888cd3ef to your computer and use it in GitHub Desktop.
clearlinux-matterbridge
FROM clearlinux/golang:latest AS builder
COPY . /go/src/matterbridge
RUN cd /go/src/matterbridge \
&& go build -mod vendor -ldflags "-X main.githash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge
FROM clearlinux:latest
RUN swupd bundle-add python-basic && swupd clean --all
COPY --from=builder /bin/matterbridge /usr/bin/matterbridge
COPY matterbridge.toml /etc/
CMD (cd /tmp && python3 -m http.server $PORT) & matterbridge -conf /etc/matterbridge.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment