Explorar o código

Add development specific Dockerfile

Nick Barrett %!s(int64=2) %!d(string=hai) anos
pai
achega
91b6fdba77
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      Dockerfile.dev

+ 13 - 0
Dockerfile.dev

@@ -0,0 +1,13 @@
+FROM golang:1-alpine3.16 AS builder
+
+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 /usr/bin/mautrix-discord
+
+# Setup development stack using gow
+RUN go install github.com/mitranim/gow@latest
+RUN echo 'gow run /build $@' > /usr/bin/mautrix-discord \
+    && chmod +x /usr/bin/mautrix-discord
+VOLUME /data