vitess.io/vitess@v0.16.2/docker/base/Dockerfile.mysql57 (about)

     1  # Copyright 2023 The Vitess Authors.
     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  ARG bootstrap_version=14.3
    16  ARG image="vitess/bootstrap:${bootstrap_version}-mysql57"
    17  
    18  FROM "${image}"
    19  
    20  # Allows some docker builds to disable CGO
    21  ARG CGO_ENABLED=0
    22  
    23  # Allows docker builds to set the BUILD_NUMBER
    24  ARG BUILD_NUMBER
    25  
    26  # Allows docker builds to set the BUILD_GIT_BRANCH
    27  ARG BUILD_GIT_BRANCH
    28  
    29  # Allows docker builds to set the BUILD_GIT_REV
    30  ARG BUILD_GIT_REV
    31  
    32  # Re-copy sources from working tree
    33  COPY --chown=vitess:vitess . /vt/src/vitess.io/vitess
    34  
    35  USER vitess
    36  
    37  # Build Vitess
    38  RUN make build