Add base structure and url webhook logic

This commit is contained in:
Dustin Pianalto
2020-11-14 00:42:37 -09:00
parent 98dfe5455a
commit 7b63fbeaf6
6 changed files with 168 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM golang:1.15-alpine as dev
WORKDIR /go/src/prepbot
COPY ./go.mod .
COPY ./go.sum .
RUN go mod download
COPY . .
RUN go install github.com/dustinpianalto/prepbot/...
CMD [ "go", "run", "cmd/prepbot/main.go"]
from alpine
WORKDIR /bin
COPY --from=dev /go/bin/prepbot ./prepbot
CMD [ "prepbot" ]