FROM debian:10.13 RUN apt-get update && apt-get install -y \ gcc \ curl \ git \ unzip \ wget \ make \ && rm -rf /var/lib/apt/lists/* # Install Gobrew ENV PATH="/root/.gobrew/current/bin:/root/.gobrew/bin:$PATH" RUN curl -sL https://raw.githubusercontent.com/kevincobain2000/gobrew/v1.10.11/git.io.sh | bash # Set Working Directory WORKDIR /go/src/toastielab.dev/toastie-stuff/otelchi # Install Multiple Go Versions ARG GO_VERSIONS COPY ./test/infras/install_go.sh ./test/infras/ RUN chmod +x ./test/infras/install_go.sh && sh ./test/infras/install_go.sh COPY go.mod go.sum ./ RUN go mod download -x COPY ./test/infras/entrypoint.sh ./test/infras/ RUN chmod +x ./test/infras/entrypoint.sh ENV GO_VERSIONS=$GO_VERSIONS COPY . . ENTRYPOINT [ "./test/infras/entrypoint.sh" ]