github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/internal/docker/Dockerfile (about)

     1  FROM buildpack-deps:bullseye-scm
     2  
     3  RUN set -eux; \
     4  	apt-get update; \
     5  	apt-get install -y --no-install-recommends \
     6  		g++ \
     7  		gcc \
     8  		libc6-dev \
     9  		make \
    10  		pkg-config \
    11  	; \
    12  	rm -rf /var/lib/apt/lists/*
    13  
    14  ENV OUT_DIR /usr/local/go
    15  ENV PATH /usr/local/go/bin:$PATH
    16  
    17  ENV GOLANG_VERSION 1.18rc1
    18  
    19  COPY go/bin/linux_amd64 $OUT_DIR/bin
    20  COPY go/src $OUT_DIR/src
    21  COPY go/pkg/linux_amd64 $OUT_DIR/pkg/linux_amd64
    22  COPY go/pkg/tool/linux_amd64 $OUT_DIR/pkg/tool/linux_amd64
    23  COPY go/pkg/include $OUT_DIR/pkg/include
    24  COPY go/pkg/obj $OUT_DIR/pkg/obj
    25  COPY go/lib $OUT_DIR/lib
    26  
    27  
    28  ENV GOPATH /go
    29  ENV PATH $GOPATH/bin:$PATH
    30  RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
    31  WORKDIR $GOPATH