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 -