From bcb3942ea832e9800f7b6ed3dc416dda7b2e5244 Mon Sep 17 00:00:00 2001 From: Vaishnavi Subhedar - Xilinx <141360387+SubhedarV@users.noreply.github.com> Date: Fri, 27 Sep 2024 16:45:38 -0700 Subject: [PATCH] fix syntax --- Dockerfile/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile/Dockerfile b/Dockerfile/Dockerfile index 0be6fe3441..fc3ec06b96 100644 --- a/Dockerfile/Dockerfile +++ b/Dockerfile/Dockerfile @@ -52,12 +52,13 @@ RUN if [[ "${BASE_IMAGE}" == amazonlinux* ]]; then \ elif echo "${BASE_IMAGE}" | grep -q "ubuntu"; then \ export DEBIAN_FRONTEND=noninteractive && \ apt-get update && \ - apt-get install -y wget systemd linux-headers-$(uname -r) || apt-get install -y linux-headers-generic && \ + apt-get install -y wget systemd && \ + apt-get install -y linux-headers-$(uname -r) || apt-get install -y linux-headers-generic && \ apt-get install -y ocl-icd-libopencl1 lsb-release dkms udev python3 ocl-icd-opencl-dev uuid-dev libboost-filesystem1.65.1 libboost-program-options1.65.1 libboost-system1.65.1 libprotobuf10 libyaml-0-2 && \ dpkg -i /tmp/${PACKAGE_FILE} || apt-get install -f -y && \ sed -i 's/systemctl/#systemctl/g' /var/lib/dpkg/info/xrt.postinst && \ rm -f /tmp/${PACKAGE_FILE} && \ - dpkg -l | grep xrt; + dpkg -l | grep xrt; else \ echo "Unsupported base image: ${BASE_IMAGE}"; \ exit 1; \