-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·29 lines (19 loc) · 915 Bytes
/
Copy pathDockerfile
File metadata and controls
executable file
·29 lines (19 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#https://hub.docker.com/_/php
#https://gist.github.com/Tazeg/a49695c24b97ca879d4b6806a206981e
FROM php:8.5.3-apache-bookworm
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
RUN apt-get install -y libicu-dev
RUN install-php-extensions imap gd mysqli zip exif sockets imap soap gmp gd opcache ldap intl
RUN pecl install xdebug;
RUN sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf
RUN a2enmod rewrite
COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
#install unzip for composer
RUN apt-get update && apt-get install -y unzip
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
RUN chmod +x /usr/local/bin/composer
RUN composer global require --dev "squizlabs/php_codesniffer=3.*"
RUN composer global require --dev "mockery/mockery"