-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (18 loc) · 898 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM golang:1.23-alpine AS builder
WORKDIR /app
COPY . .
RUN go build -o cloudian-exporter cmd/cloudian-exporter.go
FROM alpine
COPY --from=builder /app/cloudian-exporter /
RUN adduser -D cloudian-exporter && chmod +x /cloudian-exporter
USER 1001
EXPOSE 8080
ENTRYPOINT ["/cloudian-exporter"]
# Labels
LABEL io.artifacthub.package.readme-url=https://github.com/dodevops/cloudian-exporter
LABEL org.opencontainers.image.description="This Prometheus exporter provides a metrics endpoint with metrics from a Cloudian installation."
LABEL org.opencontainers.image.documentation=https://github.com/dodevops/cloudian-exporter
LABEL org.opencontainers.image.source=https://github.com/dodevops/cloudian-exporter
LABEL org.opencontainers.image.title="cloudian-exporter"
LABEL org.opencontainers.image.url=https://github.com/dodevops/cloudian-exporter
LABEL org.opencontainers.image.vendor="DO! DevOps"