From 3f30d449c34c8b6160291bcc654c3e824d9f3d29 Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Wed, 13 Nov 2024 16:19:07 +0100 Subject: [PATCH] hadolint, part 3 --- docker/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index bdc5157..e696b18 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,5 +1,6 @@ FROM debian:bookworm as builder +# hadolint ignore=DL3008 RUN apt-get update && \ apt-get install --no-install-recommends -y curl gcc python3 libpython3-dev && \ rm -rf /var/lib/apt/lists/* @@ -21,12 +22,14 @@ RUN . "$HOME/.cargo/env" && cargo build --release --all-features FROM debian:bookworm-slim # Install python, needed for PythonScriptRouter +# hadolint ignore=DL3008 RUN apt-get update && \ apt-get install --no-install-recommends -y python3 python3-pip && \ rm -rf /var/lib/apt/lists/* # There are propably some users that want to use this libs in their PythonScriptRouter to e.g. make external HTTP calls -RUN python3 -m pip install --break-system-packages requests +# hadolint ignore=DL3013 +RUN python3 -m pip install --no-cache-dir --break-system-packages requests COPY --from=builder /trino-lb/target/release/trino-lb /trino-lb/target/release/trino-lb