agones.dev/agones@v1.54.0/build/build-sdk-images/tool/base/Dockerfile (about)

     1  # Copyright 2018 Google LLC All Rights Reserved.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  
    16  #
    17  # Base images for SDKs Bump: 3
    18  #
    19  
    20  FROM debian:bookworm
    21  
    22  RUN apt-get update && apt-get install -y \
    23    build-essential autoconf libtool git pkg-config curl \
    24    automake libtool curl make g++ unzip moreutils cmake \
    25    && apt-get clean
    26  
    27  ARG GRPC_RELEASE_TAG
    28  # Install grpc locally for reuse across builds.
    29  RUN git clone --recurse-submodules -b $GRPC_RELEASE_TAG --depth 1 --shallow-submodules https://github.com/grpc/grpc /var/local/git/grpc && \
    30      cd /var/local/git/grpc && \
    31      mkdir -p cmake/build && \
    32      cd cmake/build && \
    33      export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) && \
    34      cmake -DCMAKE_BUILD_TYPE=Release -DgRPC_INSTALL=ON -DgRPC_BUILD_TESTS=OFF ../.. && \
    35      make -j$(nproc) && make install
    36  
    37  WORKDIR /go/src/agones.dev/agones
    38  
    39  # code generation scripts
    40  COPY entrypoint.sh /root/
    41  RUN chmod +x /root/entrypoint.sh
    42  ENTRYPOINT [ "/root/entrypoint.sh" ]