Skip to content

Commit a7a4f31

Browse files
committed
fixup! fixup! Use Signed Binaries for Docker Build
1 parent 5b21b79 commit a7a4f31

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.pipelines/build/dockerfiles/cns.Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,19 @@ EXPOSE 10090
1515
# mcr.microsoft.com/cbl-mariner/base/core:2.0
1616
# skopeo inspect docker://mcr.microsoft.com/cbl-mariner/base/core:2.0 --format "{{.Name}}@{{.Digest}}"
1717
FROM --platform=linux/${ARCH} mcr.microsoft.com/cbl-mariner/base/core@sha256:961bfedbbbdc0da51bc664f51d959da292eced1ad46c3bf674aba43b9be8c703 AS build-helper
18-
ARG ARTIFACT_DIR .
19-
20-
COPY ${ARTIFACT_DIR}/root_artifact.tar .
21-
RUN tar xvf root_artifact.tar /artifacts/
2218
RUN tdnf install -y iptables
2319

2420
# mcr.microsoft.com/cbl-mariner/distroless/minimal:2.0
2521
FROM --platform=linux/${ARCH} mcr.microsoft.com/cbl-mariner/distroless/minimal@sha256:7778a86d86947d5f64c1280a7ee0cf36c6c6d76b5749dd782fbcc14f113961bf AS linux
22+
ARG ARTIFACT_DIR .
2623

24+
RUN ls -la /
25+
RUN ls -la /artifacts
26+
RUN ls -la /__w/1/a
27+
RUN ls -la /${ARTIFACT_DIR}
2728
COPY --from=build-helper /usr/sbin/*tables* /usr/sbin/
2829
COPY --from=build-helper /usr/lib /usr/lib
29-
COPY --from=build-helper /artifacts/bin/azure-cns /usr/local/bin/azure-cns
30+
ADD ${ARTIFACT_DIR}/bin/azure-cns /usr/local/bin/azure-cns
31+
COPY ${ARTIFACT_DIR}/bin/azure-cns /usr/local/bin/azure-cns
3032
ENTRYPOINT [ "/usr/local/bin/azure-cns" ]
3133
EXPOSE 10090

0 commit comments

Comments
 (0)