Skip to content

Instantly share code, notes, and snippets.

@antonkomarev
Created July 19, 2024 08:24
Show Gist options
  • Save antonkomarev/12c01c918b82962da788d7aa6ac2d5f0 to your computer and use it in GitHub Desktop.
Save antonkomarev/12c01c918b82962da788d7aa6ac2d5f0 to your computer and use it in GitHub Desktop.
How to install PHP in Docker when "add-apt-repository -y ppa:ondrej/php" is not available
apt-get -y install --no-install-recommends --no-install-suggests dirmngr && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 71DAEAAB4AD4CAB6 4F4EA0AAE5267A6C && \
add-apt-repository -y "deb https://mirror.yandex.ru/mirrors/launchpad/ondrej/php/ $(lsb_release -cs) main"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment