1
0
mirror of https://github.com/bgp/stayrtr.git synced 2024-05-06 15:54:54 +00:00
bgp-stayrtr/Dockerfile.gortr.prod
Louis Poinsignon bbe951f4aa Moves to go mod (#17).
Updated README to give more build details.
2019-03-20 21:29:42 -07:00

19 lines
367 B
Docker

ARG src_uri=github.com/cloudflare/gortr/cmd/gortr
FROM golang:alpine as builder
ARG src_uri
RUN apk --update --no-cache add git && \
go get -u $src_uri
FROM alpine:latest
ARG src_uri
RUN apk --update --no-cache add ca-certificates && \
adduser -S -D -H -h / rtr
USER rtr
COPY --from=builder /go/bin/gortr /
COPY cmd/gortr/cf.pub /
ENTRYPOINT ["./gortr"]