Skip to content

Commit

Permalink
add ca-certificates to oci image
Browse files Browse the repository at this point in the history
This is needed to validate letsencrypt's ca signed certs.
  • Loading branch information
jhoblitt committed May 20, 2024
1 parent d6fb21c commit 7f9e982
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .hadolint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
ignored:
# disable pinning apk package versions
- DL3018
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ WORKDIR /go/src/github.com/camptocamp/prometheus-puppetdb-exporter
COPY . .
RUN make prometheus-puppetdb-exporter

FROM scratch
FROM alpine:3
RUN apk --update --no-cache add \
ca-certificates \
&& rm -rf /root/.cache
COPY --from=builder /go/src/github.com/camptocamp/prometheus-puppetdb-exporter/prometheus-puppetdb-exporter /
ENTRYPOINT ["/prometheus-puppetdb-exporter"]
CMD [""]

0 comments on commit 7f9e982

Please sign in to comment.