...
1ARG GO_VERSION
2FROM golang:${GO_VERSION}
3
4ENV GOPROXY=direct
5
6RUN apt-get update && apt-get install -y --no-install-recommends \
7 software-properties-common \
8 && wget -O- https://apt.corretto.aws/corretto.key | apt-key add - \
9 && add-apt-repository 'deb https://apt.corretto.aws stable main' \
10 && apt-get update && apt-get install -y --no-install-recommends \
11 vim \
12 java-17-amazon-corretto-jdk \
13 && rm -rf /var/list/apt/lists/*
14
15ADD . /go/src/github.com/aws/aws-sdk-go-v2
16
17WORKDIR /go/src/github.com/aws/aws-sdk-go-v2
18CMD ["make", "unit"]
View as plain text