mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-27 02:46:47 +01:00
95acca6b52
follow-up after 91456ab5bb
docker buildx uses special variables, such as TARGETARCH and it shouldn't be overwritten.
See this article for details
https://www.docker.com/blog/faster-multi-platform-builds-dockerfile-cross-compilation-guide/
Signed-off-by: f41gh7 <nik@victoriametrics.com>
13 lines
493 B
Docker
13 lines
493 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
|
|
EXPOSE 8428
|
|
ENTRYPOINT ["/victoria-metrics-prod"]
|
|
ARG TARGETARCH
|
|
COPY victoria-metrics-linux-${TARGETARCH}-prod ./victoria-metrics-prod
|