Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
SubhedarV authored Sep 27, 2024
1 parent fc50ecf commit bcb3942
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down

0 comments on commit bcb3942

Please sign in to comment.