From dbceee17ed6f53b08e1c88992c4943f0c763262b Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Fri, 15 Feb 2019 13:38:00 +0100 Subject: [PATCH] update whatsapp bridge --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f115cdf..82c0f6e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,14 +5,19 @@ RUN apk --no-cache add \ gcc \ musl-dev -RUN go get maunium.net/go/mautrix-whatsapp +WORKDIR /build +RUN git clone https://github.com/tulir/mautrix-whatsapp.git +WORKDIR /build/mautrix-whatsapp + +RUN go get +RUN go build -o /build/bin/mautrix-whatsapp FROM thallian/confd-env:latest RUN addgroup -g 2222 matrix-bridge RUN adduser -h /var/lib/matrix-bridge -u 2222 -D -G matrix-bridge matrix-bridge -COPY --from=builder /go/bin/mautrix-whatsapp /bin/mautrix-whatsapp +COPY --from=builder /build/bin/mautrix-whatsapp /bin/mautrix-whatsapp RUN apk --no-cache add ca-certificates @@ -26,4 +31,3 @@ RUN chown -R matrix-bridge:matrix-bridge /var/lib/matrix-bridge ENV HOME /var/lib/matrix-bridge EXPOSE 8080 -