From f8d0674905badfe750b8836dd4c0d43966a1d14b Mon Sep 17 00:00:00 2001 From: Dusan Malusev Date: Sun, 11 Aug 2024 23:51:28 +0200 Subject: [PATCH] fix(docker): use mlocate in 20.04 image and plocate in >=22.04 Signed-off-by: Dusan Malusev --- docker/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 9ae224ba5..6b05e0b0e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -163,13 +163,14 @@ ENV PATH="$PATH:/root/.local/bin:/php/bin" RUN apt-get update \ && apt-get upgrade -y \ + && CODENAME=$(grep VERSION_CODENAME /etc/os-release | cut -d= -f2); [ "$CODENAME" = "focal" ] && apt-get install -y mlocate python3.8-venv \ + || apt-get install -y plocate \ && apt-get install -y \ pipx \ gdb \ python3 \ python3-pip \ unzip \ - plocate \ clang-format \ lldb \ libonig5 \