mirror of
https://github.com/cloudflare/gortr.git
synced 2024-05-19 06:50:10 +00:00
18 lines
349 B
Docker
18 lines
349 B
Docker
ARG src_uri=github.com/cloudflare/gortr/cmd/rtrdump
|
|
|
|
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"]
|