Skip to content

Commit 2ab6dc5

Browse files
authored
Merge pull request nalbury#22 from nalbury/na-add-ce-cert-to-container
adding ca-certs pkg to dockerfile for prometheus hosts with tls
2 parents eb129b4 + 2270d99 commit 2ab6dc5

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,20 @@ RUN apt-get update && apt-get install -y make
1010

1111
ADD ./ /promql-cli/
1212
ARG TARGETARCH
13-
RUN OS=linux ARCH=${TARGETARCH} INSTALL_PATH=/promql-cli/build/bin/ make install
13+
RUN OS=linux ARCH=${TARGETARCH} INSTALL_PATH=/promql-cli/build/bin/ make install
1414

1515
# TODO explore other base images here.
1616
# Requirements:
1717
# - small
1818
# - correct perms available for mounting and using a config file (config > cmdline flags), right now we just run as root... (see below)
19-
# I'm generally not a fan of alpine/busybox for a cmdline env but maybe minideb or similar?
19+
# I'm generally not a fan of alpine/busybox for a cmdline env but maybe minideb or similar?
2020
# Stock deb slim is pretty rad already :)
21-
FROM debian:buster-slim AS promql-cli
21+
FROM debian:buster-slim AS promql-cli
2222
COPY --from=build /promql-cli/build/bin/promql /bin/promql
23+
24+
RUN apt-get update \
25+
&& apt-get install -y ca-certificates \
26+
&& rm -rf /var/lib/apt/lists/*
27+
2328
# TODO don't run as root...
2429
ENTRYPOINT [ "/bin/promql" ]

0 commit comments

Comments
 (0)