mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-13 17:13:11 +01:00
13 lines
365 B
Text
13 lines
365 B
Text
FROM golang:1-alpine3.16
|
|
|
|
RUN apk add --no-cache git ca-certificates build-base su-exec olm-dev bash jq yq curl
|
|
|
|
COPY . /build
|
|
WORKDIR /build
|
|
RUN go build -o /whatsapp
|
|
|
|
# Setup development stack using gow
|
|
RUN go install github.com/mitranim/gow@latest
|
|
RUN echo 'gow run /build $@' > /usr/bin/mautrix-whatsapp \
|
|
&& chmod +x /usr/bin/mautrix-whatsapp
|
|
VOLUME /data
|