github.com/snowflakedb/gosnowflake@v1.9.0/ci/image/Dockerfile.go-centos7-go1.19-test (about)

     1  FROM centos:7
     2  
     3  # update OS and install basic tools
     4  RUN yum -y update && \
     5      yum -y install epel-release && \
     6      yum -y install centos-release-scl && \
     7      yum -y install git && \
     8      yum -y install which && \
     9      yum -y install zstd && \
    10      yum -y install jq
    11  
    12  # gosu
    13  RUN curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64"
    14  RUN chmod +x /usr/local/bin/gosu
    15  
    16  # Install build tools
    17  RUN yum -y groupinstall 'Development Tools'
    18  RUN yum -y install centos-release-scl
    19  RUN yum -y install devtoolset-8-gcc*
    20  SHELL [ "/usr/bin/scl", "enable", "devtoolset-8"]
    21  
    22  # python
    23  RUN yum -y install python36
    24  RUN python3 -V
    25  
    26  # install Go
    27  RUN curl -O -L https://go.dev/dl/go1.19.13.linux-amd64.tar.gz && \
    28      tar -C /usr/local -xzf go1.19.13.linux-amd64.tar.gz
    29  ENV GOROOT /usr/local/go
    30  ENV GOPATH=/tmp/go
    31  ENV GOCACHE=/tmp/cache
    32  ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin
    33  ENV CGO_ENABLED=1
    34  
    35  # workspace
    36  RUN mkdir -p /home/user && \
    37      chmod 777 /home/user
    38  WORKDIR /home/user
    39  
    40  # entry point
    41  COPY scripts/entrypoint.sh /usr/local/bin/entrypoint.sh
    42  RUN chmod +x /usr/local/bin/entrypoint.sh
    43  ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]