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

18 lines
349 B
Docker
Raw Normal View History

ARG src_uri=github.com/cloudflare/gortr/cmd/rtrdump
2018-09-22 17:26:51 +03:00
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/rtrdump /
ENTRYPOINT ["./rtrdump"]