github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/images/agent/Dockerfile (about)

     1  FROM golang:1.15 as build-agent
     2  RUN git clone --depth=1 --branch=v3.25.0 https://github.com/buildkite/agent
     3  RUN cd agent && go build -i -o /buildkite-agent .
     4  
     5  FROM golang:1.15 as build-agent-metrics
     6  RUN git clone --depth=1 --branch=v5.2.0 https://github.com/buildkite/buildkite-agent-metrics
     7  RUN cd buildkite-agent-metrics && go build -i -o /buildkite-agent-metrics .
     8  
     9  FROM gcr.io/distroless/base-debian10
    10  COPY --from=build-agent /buildkite-agent /
    11  COPY --from=build-agent-metrics /buildkite-agent-metrics /
    12  CMD ["/buildkite-agent"]