mautrix-whatsapp/Dockerfile.dev

14 lines
365 B
Text
Raw Normal View History

2023-06-26 12:20:59 +02:00
FROM golang:1-alpine3.18
2022-08-12 16:32:18 +02:00
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