Skip to content

Commit b6753c8

Browse files
committed
Dockerfile: install build deps
Copy the list of build dependencies from base_image and install them in the build container. This will enable removing the build dependencies from base_image, and that will eliminate hundreds of complaints from Trivy, including the current CVE-2026-23112 which is marked as high severity. Refs #415
1 parent 9b2d58c commit b6753c8

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,32 @@ ENV SOURCE_DIR=$HOME/src/force
3939
ARG debug=disable
4040
ARG build=all
4141

42+
# Refresh package list & upgrade existing packages
43+
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
44+
--mount=type=cache,target=/var/lib/apt,sharing=locked \
45+
# Disable interactive frontends.
46+
export DEBIAN_FRONTEND=noninteractive && \
47+
apt-get -y update && apt-get -y upgrade && \
48+
# Install required tools.
49+
apt-get -y install --no-install-recommends \
50+
build-essential \
51+
ca-certificates \
52+
ccache \
53+
dirmngr \
54+
dos2unix \
55+
git \
56+
gpg \
57+
libgsl0-dev \
58+
libjansson-dev \
59+
lockfile-progs \
60+
pkgconf \
61+
python3-dev \
62+
python-is-python3 \
63+
pandoc \
64+
parallel \
65+
rename \
66+
r-base
67+
4268
# Copy src to SOURCE_DIR
4369
RUN mkdir -p $SOURCE_DIR
4470
WORKDIR $SOURCE_DIR

0 commit comments

Comments
 (0)