github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/swarmkit/Dockerfile (about)

     1  # NOTE(dperny): for some reason, alpine was giving me trouble
     2  FROM golang:1.12.9-stretch
     3  
     4  RUN apt-get update && apt-get install -y make git unzip
     5  
     6  # should stay consistent with the version in .circleci/config.yml
     7  ARG PROTOC_VERSION=3.6.1
     8  # download and install protoc binary and .proto files
     9  RUN curl --silent --show-error --location --output protoc.zip \
    10    https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip \
    11    && unzip -d /usr/local protoc.zip include/\* bin/\* \
    12    && rm -f protoc.zip
    13  
    14  WORKDIR /go/src/github.com/docker/swarmkit/
    15  
    16  # install the dependencies from `make setup`
    17  # we only copy `direct.mk` to avoid busting the cache too easily
    18  COPY direct.mk .
    19  RUN make --file=direct.mk setup
    20  
    21  # now we can copy the rest
    22  COPY . .
    23  
    24  # default to just `make`. If you want to change the default command, change the
    25  # default make command, not this command.
    26  CMD ["make"]