Skip to content

Commit 8e01673

Browse files
committed
feat: create docker file for dev with PHP 8.5
1 parent 14891b7 commit 8e01673

4 files changed

Lines changed: 41 additions & 2 deletions

File tree

.docker/PHP85-Dockerfile

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
FROM php:8.5-fpm
2+
3+
RUN apt-get update
4+
RUN apt-get --yes --no-install-recommends install \
5+
apt-utils \
6+
curl \
7+
git \
8+
vim
9+
10+
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
11+
12+
RUN install-php-extensions \
13+
bcmath \
14+
exif \
15+
gd \
16+
intl \
17+
mysqli \
18+
opcache \
19+
pdo \
20+
pdo_mysql \
21+
sockets \
22+
xdebug-^3.5 \
23+
zip \
24+
@composer
25+
26+
COPY build/php/opcache.ini /usr/local/etc/php/conf.d/
27+
COPY build/php/custom.ini /usr/local/etc/php/conf.d/
28+
29+
30+
RUN php --version
31+
32+
RUN composer --version
33+
34+
RUN usermod -u 1000 www-data
35+
RUN usermod -a -G www-data root
36+
RUN mkdir -p /var/www/.composer
37+
RUN chown -R www-data:www-data /var/www
38+
39+
WORKDIR /var/www/project/

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ services:
22
php:
33
build: # Info to build the Docker image
44
context: ./.docker # Specify where the Dockerfile is located (e.g. in the root directory of the project)
5-
dockerfile: PHP-Dockerfile # Specify the name of the Dockerfile
5+
dockerfile: PHP85-Dockerfile # Specify the name of the Dockerfile
66
ports:
77
- 8111:80
88
depends_on:

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
beStrictAboutCoverageMetadata="false"
88
beStrictAboutOutputDuringTests="true"
99
displayDetailsOnIncompleteTests="true"
10-
displayDetailsOnPhpunitDeprecations="true"
1110
displayDetailsOnSkippedTests="true"
1211
displayDetailsOnTestsThatTriggerDeprecations="true"
12+
displayDetailsOnPhpunitDeprecations="true"
1313
displayDetailsOnTestsThatTriggerErrors="true"
1414
displayDetailsOnTestsThatTriggerNotices="true"
1515
displayDetailsOnTestsThatTriggerWarnings="true"

0 commit comments

Comments
 (0)