Skip to content

Commit f4bde05

Browse files
committed
qwci: make sure to update packages to latest version
The ubuntu:24.04 base image only ships updates ~1 month. This means CVEs patches may not get applied in the docker images. Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
1 parent eb542e0 commit f4bde05

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

deploy/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ENV DEBIAN_FRONTEND=noninteractive
77
# These two environment variables are used to make openssl-sys pick
88
# up libssl-dev and statically link it. Without it, our build defaults
99
# to building a vendored version of OpenSSL.
10-
RUN apt update --fix-missing && apt install \
10+
RUN apt update --fix-missing && apt -y dist-upgrade && apt install \
1111
# bindgen needs this (at least the dec crate uses bindgen)
1212
libclang-dev \
1313
# pkg-config is required for cargo to find libssl
@@ -70,10 +70,10 @@ COPY --chown=ubuntu crates/pipeline-manager/demos/sql feldera/demos/sql
7070
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain 1.93.1
7171
# The download URL for mold uses x86_64/aarch64 whereas dpkg --print-architecture says amd64/arm64
7272
RUN arch=`dpkg --print-architecture | sed "s/arm64/aarch64/g" | sed "s/amd64/x86_64/g"`; \
73-
curl -LO https://github.com/rui314/mold/releases/download/v2.40.1/mold-2.40.1-$arch-linux.tar.gz \
74-
&& tar -xzvf mold-2.40.1-$arch-linux.tar.gz \
75-
&& mv mold-2.40.1-$arch-linux $HOME/mold \
76-
&& rm mold-2.40.1-$arch-linux.tar.gz
73+
curl -LO https://github.com/rui314/mold/releases/download/v2.40.4/mold-2.40.4-$arch-linux.tar.gz \
74+
&& tar -xzvf mold-2.40.4-$arch-linux.tar.gz \
75+
&& mv mold-2.40.4-$arch-linux $HOME/mold \
76+
&& rm mold-2.40.4-$arch-linux.tar.gz
7777
ENV PATH="$PATH:/home/ubuntu/.cargo/bin:/home/ubuntu/mold/bin"
7878
ENV RUSTFLAGS="-C link-arg=-fuse-ld=mold -C link-arg=-Wl,--compress-debug-sections=zlib"
7979

0 commit comments

Comments
 (0)