Skip to content
This repository was archived by the owner on Nov 7, 2022. It is now read-only.

Commit 1c603aa

Browse files
basvanbeekEmmanuel T Odeke
authored andcommitted
Dockerfile: include ssl certificates (#371)
To allow for exporters or any outside service that needs TLS/SSL, we need to include certificaticates e.g. for the Stackdriver exporter.
1 parent 4ae4299 commit 1c603aa

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

cmd/ocagent/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# Use a helper to create an emtpy configuration since the agent requires such file
22
FROM alpine:3.7 as helper
3-
RUN touch ./config.yaml
3+
RUN apk update \
4+
&& apk add --no-cache ca-certificates \
5+
&& update-ca-certificates \
6+
&& touch ./config.yaml
47

58
FROM scratch
69
COPY ocagent_linux /
710
COPY --from=helper ./config.yaml config.yaml
11+
COPY --from=helper /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
812
ENTRYPOINT ["/ocagent_linux"]
913
EXPOSE 55678 55679

0 commit comments

Comments
 (0)