Skip to content

Commit 1bca188

Browse files
Merge pull request #303 from boxxroom/master
Fix: PHP 7.4 / PHP 8.1 apache-buster 404 Not Found issue
2 parents 728d2d2 + 7abad4d commit 1bca188

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

bin/php74/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ FROM php:7.4.2-apache-buster
55

66
ARG DEBIAN_FRONTEND=noninteractive
77

8+
RUN sed -i 's|http://deb.debian.org/debian|http://archive.debian.org/debian|g' /etc/apt/sources.list && \
9+
sed -i 's|http://security.debian.org/debian-security|http://archive.debian.org/debian-security|g' /etc/apt/sources.list && \
10+
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99ignore-valid-until
11+
812
# Update
913
RUN apt-get -y update --fix-missing && \
1014
apt-get upgrade -y && \

bin/php81/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ FROM php:8.1-apache-buster
55

66
ARG DEBIAN_FRONTEND=noninteractive
77

8+
RUN sed -i 's|http://deb.debian.org/debian|http://archive.debian.org/debian|g' /etc/apt/sources.list && \
9+
sed -i 's|http://security.debian.org/debian-security|http://archive.debian.org/debian-security|g' /etc/apt/sources.list && \
10+
echo 'Acquire::Check-Valid-Until "false";' > /etc/apt/apt.conf.d/99ignore-valid-until
11+
812
# Update
913
RUN apt-get -y update --fix-missing && \
1014
apt-get upgrade -y && \

0 commit comments

Comments
 (0)