Skip to content

Commit

Permalink
Use GHCR docker image by default (#39)
Browse files Browse the repository at this point in the history
Fix daemonset, missing configmap
  • Loading branch information
ianb-mp authored Jun 12, 2024
1 parent 505611b commit d4be6f7
Show file tree
Hide file tree
Showing 3 changed files with 210 additions and 202 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM golang:alpine as builder
FROM docker.io/golang:alpine as builder

RUN apk add --no-cache --virtual build-dependencies build-base linux-headers git
COPY ./ /usr/src/sriov-network-metrics-exporter
WORKDIR /usr/src/sriov-network-metrics-exporter
RUN make clean && make build

FROM alpine:3.16
FROM docker.io/alpine:3.16
COPY --from=builder /usr/src/sriov-network-metrics-exporter/bin/* /usr/bin/
RUN apk update && apk add --no-cache ca-certificates && update-ca-certificates && apk add --no-cache openssl
EXPOSE 9808
ENTRYPOINT ["sriov-exporter"]
ENTRYPOINT ["sriov-exporter"]
Loading

0 comments on commit d4be6f7

Please sign in to comment.