1
0
mirror of https://github.com/bgp/stayrtr.git synced 2024-05-06 15:54:54 +00:00
bgp-stayrtr/Dockerfile.gortr.prod

19 lines
367 B
Docker
Raw Normal View History

2018-09-22 17:26:51 +03:00
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 /
2018-09-22 17:26:51 +03:00
ENTRYPOINT ["./gortr"]