mautrix-discord/Dockerfile

27 lines
791 B
Docker
Raw Permalink Normal View History

2023-06-26 10:21:44 +00:00
FROM dock.mau.dev/tulir/lottieconverter:alpine-3.18 AS lottie
2023-06-26 10:21:44 +00:00
FROM golang:1-alpine3.18 AS builder
2022-03-31 19:41:34 +00:00
RUN apk add --no-cache git ca-certificates build-base su-exec olm-dev
COPY . /build
WORKDIR /build
RUN go build -o /usr/bin/mautrix-discord
2023-06-26 10:21:44 +00:00
FROM alpine:3.18
2022-03-31 19:41:34 +00:00
ENV UID=1337 \
GID=1337
RUN apk add --no-cache ffmpeg su-exec ca-certificates olm bash jq yq curl \
zlib libpng giflib libstdc++ libgcc
2022-03-31 19:41:34 +00:00
COPY --from=lottie /usr/lib/librlottie.so* /usr/lib/
COPY --from=lottie /usr/local/bin/lottieconverter /usr/local/bin/lottieconverter
2022-03-31 19:41:34 +00:00
COPY --from=builder /usr/bin/mautrix-discord /usr/bin/mautrix-discord
COPY --from=builder /build/example-config.yaml /opt/mautrix-discord/example-config.yaml
COPY --from=builder /build/docker-run.sh /docker-run.sh
VOLUME /data
CMD ["/docker-run.sh"]