From 56e041a03cbbfd19f018300e2f4c5332e4484503 Mon Sep 17 00:00:00 2001 From: Nick Barrett Date: Fri, 12 Aug 2022 15:32:18 +0100 Subject: [PATCH] Add development specific Dockerfile --- Dockerfile.dev | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile.dev diff --git a/Dockerfile.dev b/Dockerfile.dev new file mode 100644 index 0000000..806c348 --- /dev/null +++ b/Dockerfile.dev @@ -0,0 +1,13 @@ +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