From ffc5831f51a3f8f6001d2070906480509b2b1fbf Mon Sep 17 00:00:00 2001 From: Finley Ghosh Date: Sun, 10 Aug 2025 11:50:10 +1000 Subject: [PATCH] Allowing apt to use repos without release files --- Dockerfile_stg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile_stg b/Dockerfile_stg index b2c40c5f..4f9caecc 100644 --- a/Dockerfile_stg +++ b/Dockerfile_stg @@ -14,6 +14,10 @@ RUN sed -i 's|http://archive.ubuntu.com/ubuntu/|http://old-releases.ubuntu.com/u RUN apt-get update RUN apt-get -y upgrade +# Allow apt to use repositories without Release files (for EOL Ubuntu 16.04) +RUN echo 'Acquire::AllowInsecureRepositories "true";' > /etc/apt/apt.conf.d/99allow-insecure +RUN apt-get update -o Acquire::AllowInsecureRepositories=true --allow-unauthenticated + # Install apache, PHP, and supplimentary programs. curl and lynx-cur are for debugging the container. RUN DEBIAN_FRONTEND=noninteractive apt-get -y install apache2 libapache2-mod-php5 php5-mysql php5-gd php-pear php-apc php5-curl php5-imap