initial commit
This commit is contained in:
commit
cc210a0da0
9 changed files with 171 additions and 0 deletions
27
Dockerfile
Normal file
27
Dockerfile
Normal file
|
@ -0,0 +1,27 @@
|
|||
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
|
||||
|
||||
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
|
||||
|
||||
EXPOSE 9005
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue