mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-21 09:11:07 +02:00
fix(ci): Docker build for issue 1837 (#2095)
* fix: Docker build for issue 1837 * fix: Linting
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
FROM registry.access.redhat.com/ubi8/ubi:8.2 AS BASE
|
||||
FROM registry.access.redhat.com/ubi8/ubi:8.2 AS base
|
||||
# Install ping
|
||||
RUN yum --disableplugin=subscription-manager install -y iputils
|
||||
RUN setcap cap_net_raw+ep /bin/ping || exit 1
|
||||
|
||||
FROM BASE
|
||||
RUN set -e && [ ! -z "$(getcap /bin/ping)" ] || exit 1
|
||||
FROM base
|
||||
RUN [ ! -z "$(getcap /bin/ping)" ] || exit 1
|
||||
Reference in New Issue
Block a user