2024-02-23 18:50:33 +00:00
|
|
|
FROM golang:1-alpine3.19
|
2023-06-30 09:51:54 +00:00
|
|
|
|
|
|
|
RUN apk add --no-cache git ca-certificates build-base su-exec olm-dev bash jq yq curl
|
|
|
|
|
|
|
|
COPY . /build
|
|
|
|
WORKDIR /build
|
|
|
|
RUN go build -o /gmessages
|
|
|
|
|
|
|
|
# Setup development stack using gow
|
|
|
|
RUN go install github.com/mitranim/gow@latest
|
|
|
|
RUN echo 'gow run /build $@' > /usr/bin/mautrix-gmessages \
|
|
|
|
&& chmod +x /usr/bin/mautrix-gmessages
|
|
|
|
VOLUME /data
|