Skip to content

Commit b1ed790

Browse files
committed
wip;
1 parent 8c64921 commit b1ed790

File tree

4 files changed

+76
-47
lines changed

4 files changed

+76
-47
lines changed

php80.Dockerfile

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM php:8.0.30-fpm
22

3+
# Update and install dependencies
34
RUN apt-get update && apt-get install -y \
45
libfreetype6-dev \
56
libjpeg62-turbo-dev \
@@ -10,31 +11,38 @@ RUN apt-get update && apt-get install -y \
1011
libzip-dev \
1112
libonig-dev \
1213
graphviz \
14+
libicu-dev \
1315
ghostscript \
1416
supervisor \
15-
dos2unix mc htop nano wget nginx \
17+
dos2unix \
18+
mc \
19+
htop \
20+
nano \
21+
wget \
22+
nginx \
23+
git \
1624

17-
# Nodejs
25+
# Node.js
1826
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
1927
&& apt-get install -y nodejs \
2028
&& npm install -g yarn \
2129

22-
# GD
30+
# GD extension
2331
&& docker-php-ext-configure gd \
2432
--with-freetype=/usr/include/ \
2533
--with-jpeg=/usr/include/ \
26-
--with-freetype=/usr/include/ \
2734
&& docker-php-ext-install gd \
2835

29-
# Swoole
36+
# Swoole extension
3037
&& pecl install swoole \
3138
&& docker-php-ext-enable swoole \
3239

33-
# Redis
40+
# Redis extension
3441
&& pecl install -o -f redis \
35-
&& rm -rf /tmp/pear \
36-
&& docker-php-ext-enable redis \
42+
&& rm -rf /tmp/pear \
43+
&& docker-php-ext-enable redis \
3744

45+
# Other PHP extensions
3846
&& docker-php-ext-install pdo_mysql \
3947
&& docker-php-ext-install zip \
4048
&& docker-php-ext-install intl \
@@ -43,7 +51,7 @@ RUN apt-get update && apt-get install -y \
4351
&& docker-php-ext-install pcntl \
4452
&& docker-php-source delete \
4553

46-
# Postgresql
54+
# PostgreSQL
4755
&& apt-get install -y libpq-dev \
4856
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
4957
&& docker-php-ext-install pdo pdo_pgsql pgsql \
@@ -54,8 +62,8 @@ RUN apt-get update && apt-get install -y \
5462

5563
# Aliases
5664
&& echo "\
57-
alias 'p=/var/www/app/vendor/bin/phpunit' \n\
58-
alias 'pf=/var/www/app/vendor/bin/phpunit --filter' \n\
65+
alias 'p=php artisan test' \n\
66+
alias 'pf=php artisan test --filter=' \n\
5967
" >> ~/.bashrc
6068

6169
WORKDIR /var/www/app/

php81.Dockerfile

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM php:8.1.27-fpm
1+
FROM php:8.1.29-fpm
22

3+
# Update and install dependencies
34
RUN apt-get update && apt-get install -y \
45
libfreetype6-dev \
56
libjpeg62-turbo-dev \
@@ -13,29 +14,35 @@ RUN apt-get update && apt-get install -y \
1314
libicu-dev \
1415
ghostscript \
1516
supervisor \
16-
dos2unix mc htop nano wget nginx \
17+
dos2unix \
18+
mc \
19+
htop \
20+
nano \
21+
wget \
22+
nginx \
23+
git \
1724

18-
# Nodejs
25+
# Node.js
1926
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
2027
&& apt-get install -y nodejs \
2128
&& npm install -g yarn \
2229

23-
# GD
30+
# GD extension
2431
&& docker-php-ext-configure gd \
2532
--with-freetype=/usr/include/ \
2633
--with-jpeg=/usr/include/ \
27-
--with-freetype=/usr/include/ \
2834
&& docker-php-ext-install gd \
2935

30-
# Swoole
36+
# Swoole extension
3137
&& pecl install swoole \
3238
&& docker-php-ext-enable swoole \
3339

34-
# Redis
40+
# Redis extension
3541
&& pecl install -o -f redis \
36-
&& rm -rf /tmp/pear \
37-
&& docker-php-ext-enable redis \
42+
&& rm -rf /tmp/pear \
43+
&& docker-php-ext-enable redis \
3844

45+
# Other PHP extensions
3946
&& docker-php-ext-install pdo_mysql \
4047
&& docker-php-ext-install zip \
4148
&& docker-php-ext-install intl \
@@ -44,7 +51,7 @@ RUN apt-get update && apt-get install -y \
4451
&& docker-php-ext-install pcntl \
4552
&& docker-php-source delete \
4653

47-
# Postgresql
54+
# PostgreSQL
4855
&& apt-get install -y libpq-dev \
4956
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
5057
&& docker-php-ext-install pdo pdo_pgsql pgsql \
@@ -55,8 +62,8 @@ RUN apt-get update && apt-get install -y \
5562

5663
# Aliases
5764
&& echo "\
58-
alias 'p=/var/www/app/vendor/bin/phpunit' \n\
59-
alias 'pf=/var/www/app/vendor/bin/phpunit --filter' \n\
65+
alias 'p=php artisan test' \n\
66+
alias 'pf=php artisan test --filter=' \n\
6067
" >> ~/.bashrc
6168

6269
WORKDIR /var/www/app/

php82.Dockerfile

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM php:8.2.15-fpm
1+
FROM php:8.2.20-fpm
22

3+
# Update and install dependencies
34
RUN apt-get update && apt-get install -y \
45
libfreetype6-dev \
56
libjpeg62-turbo-dev \
@@ -13,29 +14,35 @@ RUN apt-get update && apt-get install -y \
1314
libicu-dev \
1415
ghostscript \
1516
supervisor \
16-
dos2unix mc htop nano wget nginx \
17+
dos2unix \
18+
mc \
19+
htop \
20+
nano \
21+
wget \
22+
nginx \
23+
git \
1724

18-
# Nodejs
25+
# Node.js
1926
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
2027
&& apt-get install -y nodejs \
2128
&& npm install -g yarn \
2229

23-
# GD
30+
# GD extension
2431
&& docker-php-ext-configure gd \
2532
--with-freetype=/usr/include/ \
2633
--with-jpeg=/usr/include/ \
27-
--with-freetype=/usr/include/ \
2834
&& docker-php-ext-install gd \
2935

30-
# Swoole
36+
# Swoole extension
3137
&& pecl install swoole \
3238
&& docker-php-ext-enable swoole \
3339

34-
# Redis
40+
# Redis extension
3541
&& pecl install -o -f redis \
36-
&& rm -rf /tmp/pear \
37-
&& docker-php-ext-enable redis \
42+
&& rm -rf /tmp/pear \
43+
&& docker-php-ext-enable redis \
3844

45+
# Other PHP extensions
3946
&& docker-php-ext-install pdo_mysql \
4047
&& docker-php-ext-install zip \
4148
&& docker-php-ext-install intl \
@@ -44,7 +51,7 @@ RUN apt-get update && apt-get install -y \
4451
&& docker-php-ext-install pcntl \
4552
&& docker-php-source delete \
4653

47-
# Postgresql
54+
# PostgreSQL
4855
&& apt-get install -y libpq-dev \
4956
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
5057
&& docker-php-ext-install pdo pdo_pgsql pgsql \
@@ -55,8 +62,8 @@ RUN apt-get update && apt-get install -y \
5562

5663
# Aliases
5764
&& echo "\
58-
alias 'p=/var/www/app/vendor/bin/phpunit' \n\
59-
alias 'pf=/var/www/app/vendor/bin/phpunit --filter' \n\
65+
alias 'p=php artisan test' \n\
66+
alias 'pf=php artisan test --filter=' \n\
6067
" >> ~/.bashrc
6168

6269
WORKDIR /var/www/app/

php83.Dockerfile

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
FROM php:8.3.2-fpm
1+
FROM php:8.3.8-fpm
22

3+
# Update and install dependencies
34
RUN apt-get update && apt-get install -y \
45
libfreetype6-dev \
56
libjpeg62-turbo-dev \
@@ -13,29 +14,35 @@ RUN apt-get update && apt-get install -y \
1314
libicu-dev \
1415
ghostscript \
1516
supervisor \
16-
dos2unix mc htop nano wget nginx \
17+
dos2unix \
18+
mc \
19+
htop \
20+
nano \
21+
wget \
22+
nginx \
23+
git \
1724

18-
# Nodejs
25+
# Node.js
1926
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
2027
&& apt-get install -y nodejs \
2128
&& npm install -g yarn \
2229

23-
# GD
30+
# GD extension
2431
&& docker-php-ext-configure gd \
2532
--with-freetype=/usr/include/ \
2633
--with-jpeg=/usr/include/ \
27-
--with-freetype=/usr/include/ \
2834
&& docker-php-ext-install gd \
2935

30-
# Swoole
36+
# Swoole extension
3137
&& pecl install swoole \
3238
&& docker-php-ext-enable swoole \
3339

34-
# Redis
40+
# Redis extension
3541
&& pecl install -o -f redis \
36-
&& rm -rf /tmp/pear \
37-
&& docker-php-ext-enable redis \
42+
&& rm -rf /tmp/pear \
43+
&& docker-php-ext-enable redis \
3844

45+
# Other PHP extensions
3946
&& docker-php-ext-install pdo_mysql \
4047
&& docker-php-ext-install zip \
4148
&& docker-php-ext-install intl \
@@ -44,7 +51,7 @@ RUN apt-get update && apt-get install -y \
4451
&& docker-php-ext-install pcntl \
4552
&& docker-php-source delete \
4653

47-
# Postgresql
54+
# PostgreSQL
4855
&& apt-get install -y libpq-dev \
4956
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
5057
&& docker-php-ext-install pdo pdo_pgsql pgsql \
@@ -55,8 +62,8 @@ RUN apt-get update && apt-get install -y \
5562

5663
# Aliases
5764
&& echo "\
58-
alias 'p=/var/www/app/vendor/bin/phpunit' \n\
59-
alias 'pf=/var/www/app/vendor/bin/phpunit --filter' \n\
65+
alias 'p=php artisan test' \n\
66+
alias 'pf=php artisan test --filter=' \n\
6067
" >> ~/.bashrc
6168

6269
WORKDIR /var/www/app/

0 commit comments

Comments
 (0)