update whatsapp bridge
This commit is contained in:
parent
5cc5f405ad
commit
dbceee17ed
10
Dockerfile
10
Dockerfile
@ -5,14 +5,19 @@ RUN apk --no-cache add \
|
|||||||
gcc \
|
gcc \
|
||||||
musl-dev
|
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
|
FROM thallian/confd-env:latest
|
||||||
|
|
||||||
RUN addgroup -g 2222 matrix-bridge
|
RUN addgroup -g 2222 matrix-bridge
|
||||||
RUN adduser -h /var/lib/matrix-bridge -u 2222 -D -G matrix-bridge 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
|
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
|
ENV HOME /var/lib/matrix-bridge
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user