2020-06-23 13:40:05 +00:00
|
|
|
FROM golang:1-alpine3.12 AS builder
|
2018-08-24 20:06:55 +00:00
|
|
|
|
2020-10-19 11:46:59 +00:00
|
|
|
RUN echo $'\
|
|
|
|
@edge http://dl-cdn.alpinelinux.org/alpine/edge/main\n\
|
|
|
|
@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing\n\
|
|
|
|
@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories
|
|
|
|
|
2020-10-18 22:45:53 +00:00
|
|
|
RUN apk add --no-cache git ca-certificates build-base su-exec olm-dev
|
2018-08-26 14:29:51 +00:00
|
|
|
|
2019-01-12 13:54:04 +00:00
|
|
|
COPY . /build
|
2020-06-07 18:20:57 +00:00
|
|
|
WORKDIR /build
|
2021-09-16 18:18:39 +00:00
|
|
|
RUN go build -o /usr/bin/mautrix-groupme
|
2018-08-24 20:06:55 +00:00
|
|
|
|
2020-06-23 13:40:05 +00:00
|
|
|
FROM alpine:3.12
|
2018-08-24 20:06:55 +00:00
|
|
|
|
2020-10-19 11:46:59 +00:00
|
|
|
RUN echo $'\
|
|
|
|
@edge http://dl-cdn.alpinelinux.org/alpine/edge/main\n\
|
|
|
|
@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing\n\
|
|
|
|
@edge http://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories
|
2020-08-14 21:10:44 +00:00
|
|
|
|
2018-10-24 13:46:15 +00:00
|
|
|
ENV UID=1337 \
|
|
|
|
GID=1337
|
|
|
|
|
2020-10-19 11:46:59 +00:00
|
|
|
RUN apk add --no-cache ffmpeg su-exec ca-certificates olm bash jq yq@edge curl
|
2018-10-24 13:46:15 +00:00
|
|
|
|
2021-09-16 18:18:39 +00:00
|
|
|
COPY --from=builder /usr/bin/mautrix-groupme /usr/bin/mautrix-groupme
|
|
|
|
COPY --from=builder /build/example-config.yaml /opt/mautrix-groupme/example-config.yaml
|
2019-02-10 11:17:35 +00:00
|
|
|
COPY --from=builder /build/docker-run.sh /docker-run.sh
|
2018-08-24 20:06:55 +00:00
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
CMD ["/docker-run.sh"]
|