File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,15 +10,20 @@ RUN apt-get update && apt-get install -y make
1010
1111ADD ./ /promql-cli/
1212ARG 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
2222COPY --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...
2429ENTRYPOINT [ "/bin/promql" ]
You can’t perform that action at this time.
0 commit comments