小编Mor*_*ogt的帖子

无法在 Dockerfile 中添加 PPA ondrej\PHP

我想用 PHP 和一些 PHP 模块扩展 httpd 图像。我的 Dockerfile 看起来像这样。

\n
FROM httpd:2.4                                 \n                                           \nCOPY forma.conf /etc/apache2/sites-available/  \n                                           \nRUN apt-get update && apt-get install -y \\     \n    nano \\                                     \n    software-properties-common   \n\nRUN LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php           \n                                                                                          \nRUN apt-get -y update && apt-get install -y \\  \n    php7.2 \\                               \n    libapache2-mod-php7.2 \\                \n    php7.2-common \\                        \n    php7.2-mysql \\                         \n    php7.2-gmp \\                           \n    php7.2-ldap \\                          \n    php7.2-curl \\                          \n    php7.2-intl \\                          \n    php7.2-mbstring \\                      \n    php7.2-xmlrpc \\                        \n    php7.2-gd \\                            \n    php7.2-bcmath \\ …
Run Code Online (Sandbox Code Playgroud)

php apache docker dockerfile

1
推荐指数
1
解决办法
9092
查看次数

标签 统计

apache ×1

docker ×1

dockerfile ×1

php ×1