Initial commit
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM golang:1.22-alpine AS build
|
||||
WORKDIR /build
|
||||
COPY . .
|
||||
RUN go mod download
|
||||
RUN go build main.go
|
||||
|
||||
FROM alpine:3.18
|
||||
WORKDIR /opt
|
||||
|
||||
COPY --from=build /build/main ./pve-exporter
|
||||
COPY --from=build /build/config.yaml ./config.yaml
|
||||
|
||||
RUN chmod +x ./pve-exporter
|
||||
|
||||
EXPOSE 9090
|
||||
CMD [ "./pve-exporter" ]
|
||||
Reference in New Issue
Block a user