From 5b1c65b8d910cf1fac3a632f82cc005f722c6729 Mon Sep 17 00:00:00 2001 From: Abbas Gheydi Date: Tue, 31 Oct 2023 15:16:10 +0330 Subject: [PATCH] Update Dockerfile --- Dockerfile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index db524ca..3cf8e61 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,7 @@ COPY . . RUN go mod download && go build -o /openstack-exporter . -FROM busybox:stable-glibc as openstack-exporter +FROM quay.io/openstack.kolla/prometheus-openstack-exporter:2023.1-ubuntu-jammy as openstack-exporter -LABEL maintainer="Jorge Niedbalski " +COPY --from=build /openstack-exporter /opt/openstack-exporter/openstack-exporter -COPY --from=build /openstack-exporter /bin/openstack-exporter - -ENTRYPOINT [ "/bin/openstack-exporter" ] -EXPOSE 9180