agones.dev/agones@v1.53.0/build/build-sdk-images/rust/Dockerfile (about)

     1  # Copyright 2019 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  ARG BASE_IMAGE=agones-build-sdk-base:latest
    15  FROM $BASE_IMAGE
    16  
    17  RUN apt-get --allow-releaseinfo-change update && \
    18      apt-get install -y wget && \
    19      apt-get clean
    20  
    21  # install rust
    22  ENV RUSTUP_HOME=/usr/local/rustup \
    23      CARGO_HOME=/usr/local/cargo \
    24      PATH=/usr/local/cargo/bin:$PATH \
    25      RUST_VERSION=1.90.0
    26  RUN wget -q https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init && \
    27      chmod +x rustup-init && \
    28      ./rustup-init -y --no-modify-path --default-toolchain $RUST_VERSION && \
    29      rm rustup-init && \
    30      rustup --version; \
    31      cargo --version; \
    32      rustc --version;
    33  
    34  # code generation scripts
    35  COPY *.sh /root/
    36  RUN chmod +x /root/*.sh