Add development specific Dockerfile

This commit is contained in:
Nick Barrett 2022-08-12 15:32:18 +01:00
parent b7514fdc8d
commit 56e041a03c
No known key found for this signature in database
GPG key ID: 31F23F2CF354937B

13
Dockerfile.dev Normal file
View file

@ -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