2024-02-09 13:42:26 +03:00
|
|
|
FROM mcr.microsoft.com/oss/go/microsoft/golang:1.22-fips-cbl-mariner2.0 AS gobuild-base
|
2022-12-06 09:57:28 +03:00
|
|
|
RUN tdnf check-update \
|
|
|
|
&& tdnf install -y \
|
|
|
|
git \
|
|
|
|
make \
|
|
|
|
&& tdnf clean all
|
2019-06-26 19:18:15 +03:00
|
|
|
|
|
|
|
FROM gobuild-base AS acr-cli
|
|
|
|
WORKDIR /go/src/github.com/Azure/acr-cli
|
|
|
|
COPY . .
|
|
|
|
RUN make binaries && mv bin/acr /usr/bin/acr
|
|
|
|
|
2024-06-03 04:35:07 +03:00
|
|
|
FROM mcr.microsoft.com/cbl-mariner/base/core:2.0
|
2022-12-06 09:57:28 +03:00
|
|
|
RUN tdnf check-update \
|
|
|
|
&& tdnf --refresh install -y \
|
|
|
|
ca-certificates-microsoft \
|
|
|
|
&& tdnf clean all
|
2019-06-26 19:18:15 +03:00
|
|
|
COPY --from=acr-cli /usr/bin/acr /usr/bin/acr
|
2019-07-09 23:59:15 +03:00
|
|
|
ENTRYPOINT [ "/usr/bin/acr" ]
|