Skip to content

Commit 5f7677e

Browse files
Copilotgkorland
andauthored
Fix Docker build: repair broken dpkg state before installing packages
Agent-Logs-Url: https://github.com/FalkorDB/code-graph/sessions/82cf8d15-529e-4e75-b5fd-0ca08bf89603 Co-authored-by: gkorland <753206+gkorland@users.noreply.github.com>
1 parent 7a4954b commit 5f7677e

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

Dockerfile

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,19 @@ COPY --from=python-base /usr/local /usr/local
2020
COPY --from=node-base /usr/local/bin/node /usr/local/bin/node
2121
COPY --from=node-base /usr/local/lib/node_modules /usr/local/lib/node_modules
2222

23-
# Install netcat for wait loop in start.sh and system build tools
24-
RUN apt-get update && apt-get install -y --no-install-recommends \
25-
netcat-openbsd \
26-
git \
27-
build-essential \
28-
ca-certificates \
23+
# Install netcat for wait loop in start.sh and system build tools.
24+
# The falkordb/falkordb:latest base image can ship with broken/held package
25+
# state (e.g. util-linux missing libtinfo6 PreDepends), so we explicitly
26+
# repair the dpkg state with --fix-broken before installing what we need.
27+
RUN apt-get update \
28+
&& apt-get install -y --no-install-recommends --fix-broken \
29+
libtinfo6 \
30+
sensible-utils \
31+
&& apt-get install -y --no-install-recommends \
32+
netcat-openbsd \
33+
git \
34+
build-essential \
35+
ca-certificates \
2936
&& rm -rf /var/lib/apt/lists/* \
3037
&& ln -sf /usr/local/bin/python3.12 /usr/bin/python3 \
3138
&& ln -sf /usr/local/bin/python3.12 /usr/bin/python \

0 commit comments

Comments
 (0)