mautrix-discord/Dockerfile.dev

19 lines
628 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-08-12 16:09:42 +00:00
RUN apk add --no-cache git ca-certificates build-base su-exec olm-dev bash jq yq curl \
zlib libpng giflib libstdc++ libgcc
2022-08-12 16:09:42 +00:00
COPY --from=lottie /usr/lib/librlottie.so* /usr/lib/
COPY --from=lottie /usr/local/bin/lottieconverter /usr/local/bin/lottieconverter
2022-08-12 16:09:42 +00:00
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