New approach with helm chart and add gd and opcache
Publish PHP Apache image / Build, test and push (push) Failing after 21s
Publish PHP Apache image / Build, test and push (push) Failing after 21s
This commit is contained in:
+13
-4
@@ -1,6 +1,6 @@
|
||||
FROM archlinux
|
||||
FROM archlinux:latest
|
||||
|
||||
RUN pacman -Syu --noconfirm apache php-apache php \
|
||||
RUN pacman -Syu --noconfirm apache php-apache php php-gd php-pgsql \
|
||||
&& pacman -Sc --noconfirm \
|
||||
&& rm -v /var/log/pacman.log /var/lib/pacman/sync/*
|
||||
|
||||
@@ -12,6 +12,15 @@ RUN sed -i '/mod_mpm_event/ s/^/#/' /etc/httpd/conf/httpd.conf \
|
||||
&& sed -i '/mod_rewrite/ s/^#//' /etc/httpd/conf/httpd.conf \
|
||||
&& echo LoadModule php_module modules/libphp.so >> /etc/httpd/conf/httpd.conf \
|
||||
&& echo AddHandler php-script .php >> /etc/httpd/conf/httpd.conf \
|
||||
&& echo Include conf/extra/php_module.conf >> /etc/httpd/conf/httpd.conf
|
||||
&& echo Include conf/extra/php_module.conf >> /etc/httpd/conf/httpd.conf \
|
||||
&& install -d /etc/php/conf.d \
|
||||
&& sed -i -e '/extension=exif/ s/^;//' \
|
||||
-e '/extension=gd/ s/^;//' \
|
||||
-e '/extension=intl/ s/^;//' \
|
||||
-e '/extension=pgsql/ s/^;//' \
|
||||
-e '/extension=pdo_pgsql/ s/^;//' \
|
||||
/etc/php/php.ini
|
||||
|
||||
ENTRYPOINT httpd -DFOREGROUND
|
||||
COPY opcache.ini /etc/php/conf.d/opcache.ini
|
||||
|
||||
ENTRYPOINT ["httpd", "-DFOREGROUND"]
|
||||
|
||||
Reference in New Issue
Block a user