Allowing apt to use repos without release files

This commit is contained in:
Finley Ghosh 2025-08-10 11:50:10 +10:00
parent a46ca9d0ab
commit ffc5831f51

View file

@ -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