mirror of
https://github.com/hanzoai/metrics.git
synced 2026-10-30 20:03:39 +00:00
Reverts https://github.com/VictoriaMetrics/VictoriaMetrics/commit/46e1fd693d2e9973bc193299243da6af236f58c3 Reason for reverts are following: 1. The fix relies on release candidates of specific libraries 2. The real fix would be to update Alpine version, which is not released yet 3. It makes the fix partially done, as it would require follow-up in future to switch from release candidates to stable versions, or to update Alpine version. 4. The fix is not effective, as it doesn't update the base image cached by Docker. The real fix will be to host&update the base image separately like in https://github.com/VictoriaMetrics/VictoriaMetrics/pull/9811. 5. VM binaries aren't vulnerable to mentioned vulnerabilites. Signed-off-by: hagen1778 <[email protected]>
11 lines
359 B
Docker
11 lines
359 B
Docker
# See https://medium.com/on-docker/use-multi-stage-builds-to-inject-ca-certs-ad1e8f01de1b
|
|
ARG certs_image=non-existing
|
|
ARG root_image=non-existing
|
|
FROM $certs_image AS certs
|
|
|
|
RUN apk update && apk upgrade && apk --update --no-cache add ca-certificates
|
|
|
|
FROM $root_image
|
|
|
|
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|