1
0
mirror of https://github.com/cloudflare/gortr.git synced 2024-05-19 06:50:10 +00:00
cloudflare-gortr/Dockerfile.rtrmon.prod
Louis Poinsignon 87a1361398 build files
2020-11-23 15:11:56 -08:00

18 lines
346 B
Docker

ARG src_uri=github.com/cloudflare/gortr/cmd/rtrmon
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/rtrmon /
ENTRYPOINT ["./rtrmon"]