mirror of
https://github.com/coreos/prometheus-operator.git
synced 2026-02-05 15:46:31 +01:00
Replace ADD with COPY (#5029)
Its a best practice to use the COPY statement instead of ADD. See https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#add-or-copy for more information
This commit is contained in:
@@ -2,7 +2,7 @@ ARG ARCH="amd64"
|
||||
ARG OS="linux"
|
||||
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
|
||||
|
||||
ADD operator /bin/operator
|
||||
COPY operator /bin/operator
|
||||
|
||||
# On busybox 'nobody' has uid `65534'
|
||||
USER 65534
|
||||
|
||||
@@ -2,7 +2,7 @@ ARG ARCH="amd64"
|
||||
ARG OS="linux"
|
||||
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
|
||||
|
||||
ADD admission-webhook /bin/admission-webhook
|
||||
COPY admission-webhook /bin/admission-webhook
|
||||
|
||||
USER nobody
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ ARG ARCH="amd64"
|
||||
ARG OS="linux"
|
||||
FROM quay.io/prometheus/busybox-${OS}-${ARCH}:latest
|
||||
|
||||
ADD prometheus-config-reloader /bin/prometheus-config-reloader
|
||||
COPY prometheus-config-reloader /bin/prometheus-config-reloader
|
||||
|
||||
USER nobody
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
FROM quay.io/prometheus/busybox:latest
|
||||
|
||||
ADD main /bin/main
|
||||
COPY main /bin/main
|
||||
|
||||
ENTRYPOINT ["/bin/main"]
|
||||
|
||||
Reference in New Issue
Block a user