Skip to content

Commit

Permalink
Merge pull request #112 from chialab/fix/debian-9-sources
Browse files Browse the repository at this point in the history
fix: debian 9 has been moved to archive
  • Loading branch information
le0m committed Jun 12, 2023
2 parents ff5f246 + 3594113 commit 62eea3b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ ARG BASE_IMAGE=php:latest
FROM ${BASE_IMAGE}
LABEL maintainer="[email protected]"

# Fix Debian 9 (Stretch) source list, because it has been moved to archive
RUN if [ "$(grep '^VERSION_ID=' /etc/os-release | cut -d '=' -f 2 | tr -d '"')" -eq "9" ]; then \
sed -i -e 's/deb.debian.org/archive.debian.org/g' \
-e 's/security.debian.org/archive.debian.org/g' \
-e '/stretch-updates/d' /etc/apt/sources.list; \
fi
# Download script to install PHP extensions and dependencies
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
Expand Down

0 comments on commit 62eea3b

Please sign in to comment.