From 39962f694c03a8474e211c96efdd4e08d82c90e9 Mon Sep 17 00:00:00 2001 From: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Date: Tue, 12 Oct 2021 16:33:52 +0200 Subject: [PATCH 1/2] Use apt-get in scripts instead of APT "apt does not have a stable CLI interface. Use with caution in scripts." --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1e93476b..e31976bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,11 +32,11 @@ RUN \ \ # Fetch and install Intel Compute Runtime and its deps curl -J -L -o /tmp/gmmlib.deb https://github.com/intel/compute-runtime/releases/download/${INTEL_NEO_VERSION}/intel-gmmlib_${INTEL_GMMLIB_VERSION}_amd64.deb && \ - apt install -y /tmp/gmmlib.deb && \ + apt-get install -y /tmp/gmmlib.deb && \ curl -J -L -o /tmp/#1.deb https://github.com/intel/intel-graphics-compiler/releases/download/igc-${INTEL_IGC_VERSION}/{intel-igc-core,intel-igc-opencl}_${INTEL_IGC_VERSION}_amd64.deb && \ - apt install -y /tmp/intel-igc-core.deb /tmp/intel-igc-opencl.deb && \ + apt-get install -y /tmp/intel-igc-core.deb /tmp/intel-igc-opencl.deb && \ curl -J -L -o /tmp/intel-opencl.deb https://github.com/intel/compute-runtime/releases/download/${INTEL_NEO_VERSION}/intel-opencl_${INTEL_NEO_VERSION}_amd64.deb && \ - apt install -y /tmp/intel-opencl.deb && \ + apt-get install -y /tmp/intel-opencl.deb && \ \ # Add user useradd -U -d /config -s /bin/false plex && \ From c069a9b60002ba3a4ec2ae39ef30f2f43502dd0c Mon Sep 17 00:00:00 2001 From: Tigerblue77 <37409593+tigerblue77@users.noreply.github.com> Date: Tue, 12 Oct 2021 16:37:24 +0200 Subject: [PATCH 2/2] Use of the Debian 11 image (bullseye) and removal of "unrar" Use of the Debian 11- image (bullseye), lighter than Ubuntu and removal of "unrar" package, not available in the official Debian repositories and which does not seem to be used for the creation of the Docker image --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e31976bd..fde2e10b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:20.04 +FROM debian:bullseye ARG S6_OVERLAY_VERSION=v2.2.0.3 ARG S6_OVERLAY_ARCH=amd64 @@ -20,7 +20,6 @@ RUN \ curl \ xmlstarlet \ uuid-runtime \ - unrar \ beignet-opencl-icd \ ocl-icd-libopencl1 \ && \