1
0
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:
Simon Schneider
2022-09-19 11:49:47 +02:00
committed by GitHub
parent bb7ec39d21
commit 2dffb2c03e
4 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -1,5 +1,5 @@
FROM quay.io/prometheus/busybox:latest
ADD main /bin/main
COPY main /bin/main
ENTRYPOINT ["/bin/main"]