mirror of
https://github.com/versity/versitygw.git
synced 2025-12-23 05:05:16 +00:00
19 lines
578 B
Docker
19 lines
578 B
Docker
ARG GO_VERSION
|
|
FROM golang:${GO_VERSION}
|
|
|
|
ENV GOPROXY=direct
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
software-properties-common \
|
|
&& wget -O- https://apt.corretto.aws/corretto.key | apt-key add - \
|
|
&& add-apt-repository 'deb https://apt.corretto.aws stable main' \
|
|
&& apt-get update && apt-get install -y --no-install-recommends \
|
|
vim \
|
|
java-17-amazon-corretto-jdk \
|
|
&& rm -rf /var/list/apt/lists/*
|
|
|
|
ADD . /go/src/github.com/aws/aws-sdk-go-v2
|
|
|
|
WORKDIR /go/src/github.com/aws/aws-sdk-go-v2
|
|
CMD ["make", "unit"]
|