forked from mirror/mautrix-discord
18 lines
628 B
Docker
18 lines
628 B
Docker
FROM dock.mau.dev/tulir/lottieconverter:alpine-3.18 AS lottie
|
|
|
|
FROM golang:1-alpine3.18 AS builder
|
|
|
|
RUN apk add --no-cache git ca-certificates build-base su-exec olm-dev bash jq yq curl \
|
|
zlib libpng giflib libstdc++ libgcc
|
|
|
|
COPY --from=lottie /usr/lib/librlottie.so* /usr/lib/
|
|
COPY --from=lottie /usr/local/bin/lottieconverter /usr/local/bin/lottieconverter
|
|
COPY . /build
|
|
WORKDIR /build
|
|
RUN go build -o /usr/bin/mautrix-discord
|
|
|
|
# Setup development stack using gow
|
|
RUN go install github.com/mitranim/gow@latest
|
|
RUN echo 'gow run /build $@' > /usr/bin/mautrix-discord \
|
|
&& chmod +x /usr/bin/mautrix-discord
|
|
VOLUME /data
|