Remove unnecessary binary artifact

Fixes https://github.com/GoogleContainerTools/kaniko/issues/2105
This commit is contained in:
Thomas L. Kjeldsen 2025-05-17 17:08:18 +02:00
parent e716ced006
commit cc7fd9eb8e
2 changed files with 1 additions and 2 deletions

View File

@ -14,10 +14,9 @@
FROM docker.io/debian:bullseye-slim as base
FROM base as build
COPY ["top1", "/tmp/top1"]
RUN \
set -eu; \
cp /tmp/top1 /usr/local/bin/top1; \
touch /usr/local/bin/top1; \
chown root:root /usr/local/bin/top1; \
chmod u=rxs,go=rx /usr/local/bin/top1; \
ls -lh /usr/local/bin/top1