Start Python rewrite

This commit is contained in:
Tulir Asokan 2018-09-23 17:56:21 +03:00
parent f06c6dd767
commit 4550fa25f7
167 changed files with 98 additions and 265573 deletions

View file

@ -1,20 +0,0 @@
FROM golang:1-alpine AS builder
RUN apk add --no-cache git ca-certificates gcc musl-dev
RUN wget -qO /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64
RUN chmod +x /usr/local/bin/dep
COPY Gopkg.lock Gopkg.toml /go/src/maubot.xyz/
WORKDIR /go/src/maubot.xyz/
RUN dep ensure -vendor-only
COPY . /go/src/maubot.xyz/
RUN go build -o /usr/bin/maubot maubot.xyz/cmd/maubot
FROM alpine
RUN apk add --no-cache ca-certificates
COPY --from=builder /usr/bin/maubot /usr/bin/maubot
CMD ["/usr/bin/maubot", "-c", "/etc/maubot/config.yaml"]