go.uber.org/yarpc@v1.72.1/Dockerfile.1.18 (about)

     1  FROM golang:1.18
     2  
     3  ENV SUPPRESS_DOCKER 1
     4  WORKDIR /yarpc
     5  RUN apt-get update -yq && apt-get install -yq jq unzip netcat
     6  ADD dockerdeps.mk /yarpc/
     7  ADD etc/make/base.mk etc/make/deps.mk /yarpc/etc/make/
     8  RUN make -f dockerdeps.mk predeps
     9  ADD etc/bin/vendor-build.sh /yarpc/etc/bin/
    10  
    11  # Download and cache dependencies in the image so that we're not constantly
    12  # re-downloading them locally.
    13  
    14  ADD tools_test.go go.mod go.sum /yarpc/
    15  RUN go mod download
    16  
    17  ADD internal/examples/go.mod /yarpc/internal/examples/
    18  RUN cd /yarpc/internal/examples && go mod download
    19  
    20  ADD internal/crossdock/go.mod /yarpc/internal/crossdock/
    21  RUN cd /yarpc/internal/crossdock && go mod download
    22  
    23  RUN make -f dockerdeps.mk deps
    24  ADD . /yarpc/