matrix-bridge-whatsapp/Dockerfile

30 lines
586 B
Docker
Raw Normal View History

2018-11-27 12:12:34 +00:00
FROM golang:alpine as builder
RUN apk --no-cache add \
git \
gcc \
musl-dev
RUN go get maunium.net/go/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
2018-11-27 12:39:11 +00:00
RUN apk --no-cache add ca-certificates
2018-11-27 12:12:34 +00:00
WORKDIR /var/lib/matrix-bridge
RUN mkdir /var/lib/matrix-bridge/data
ADD /rootfs /
RUN chown -R matrix-bridge:matrix-bridge /var/lib/matrix-bridge
ENV HOME /var/lib/matrix-bridge
2018-11-27 12:39:11 +00:00
EXPOSE 8080
2018-11-27 12:12:34 +00:00