Skip to content

Commit

Permalink
hadolint, part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed Nov 13, 2024
1 parent 9a35deb commit 3f30d44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/*
Expand All @@ -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

Expand Down

0 comments on commit 3f30d44

Please sign in to comment.