mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-11-13 13:32:33 +01:00
Merge pull request #543 from mautrix/add-dev-dockerfile
Add development specific Dockerfile
This commit is contained in:
commit
78a8a759c8
1 changed files with 13 additions and 0 deletions
13
Dockerfile.dev
Normal file
13
Dockerfile.dev
Normal 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
|
Loading…
Reference in a new issue