Skip to content
Snippets Groups Projects
Commit 5e89538a authored by Tulir Asokan's avatar Tulir Asokan :cat2:
Browse files

Add dockerfile

parent 02a8b76a
No related branches found
No related tags found
No related merge requests found
FROM golang:1-alpine AS builder
RUN apk add --no-cache git ca-certificates
RUN wget -qO /usr/local/bin/dep https://github.com/golang/dep/releases/download/v0.4.1/dep-linux-amd64
RUN chmod +x /usr/local/bin/dep
COPY Gopkg.lock Gopkg.toml /go/src/maubot.xyz/gitlab/
WORKDIR /go/src/maubot.xyz/gitlab
RUN dep ensure -vendor-only
COPY . /go/src/maubot.xyx/gitlab
RUN CGO_ENABLED=0 go build -o /usr/bin/maulabbot
FROM scratch
COPY --from=builder /usr/bin/maulabbot /usr/bin/maulabbot
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
CMD ["/usr/bin/maulabbot"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment