Skip to content

Commit

Permalink
fix: use alpine in Containerfile, add compose.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime1907 committed Sep 23, 2024
1 parent ee235e1 commit 033a7ca
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ COPY . .

RUN make ovh-exporter && mv ovh-exporter /usr/bin/

FROM busybox:stable AS runtime
FROM alpine:3.20.3 AS runtime

COPY --from=build /usr/bin/ovh-exporter /usr/bin/ovh-exporter

Expand Down
16 changes: 16 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
services:
ovh-exporter:
image: ghcr.io/wiremind/ovh-exporter
build:
context: .
container_name: ovh-exporter
ports:
- "8080:8080"
environment:
OVH_ENDPOINT: "ovh-eu"
OVH_APP_KEY: ""
OVH_APP_SECRET: ""
OVH_CONSUMER_KEY: ""
OVH_CLOUD_PROJECT_INSTANCE_BILLING_PROJECT_ID: ""
OVH_CACHE_UPDATE_INTERVAL: "60"
SERVER_PORT: "8080"

0 comments on commit 033a7ca

Please sign in to comment.