Skip to content

Commit

Permalink
add php83, update versions;
Browse files Browse the repository at this point in the history
  • Loading branch information
lazerg committed Feb 4, 2024
1 parent f4fa9ef commit 8c64921
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 10 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,26 @@ jobs:
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build . --file php82.Dockerfile --tag $REPO:latest --tag $REPO:php82
run: docker build . --file php82.Dockerfile --tag $REPO:php82

- name: Docker push as php82
run: docker push $REPO:php82

php83:
needs: php82
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: docker login

run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build . --file php83.Dockerfile --tag $REPO:latest --tag $REPO:php83

- name: Docker push as latest
run: docker push $REPO:latest

- name: Docker push as php81
run: docker push $REPO:php82
- name: Docker push as php83
run: docker push $REPO:php83
9 changes: 5 additions & 4 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ docker image push lazerg/laravel:latest

| Tag name | PHP Version | Node Version |
|----------|-------------|--------------|
| `latest` | **v8.2.7** | v20.3.1 |
| `php82` | **v8.2.7** | v20.3.1 |
| `php81` | **v8.1.20** | v20.3.1 |
| `php80` | **v8.0.29** | v20.3.1 |
| `latest` | **v8.3.2** | v20.11.0 |
| `php83` | **v8.3.2** | v20.11.0 |
| `php82` | **v8.2.15** | v20.11.0 |
| `php81` | **v8.1.27** | v20.11.0 |
| `php80` | **v8.0.30** | v20.11.0 |

# Links

Expand Down
2 changes: 1 addition & 1 deletion php80.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.0.29-fpm
FROM php:8.0.30-fpm

RUN apt-get update && apt-get install -y \
libfreetype6-dev \
Expand Down
2 changes: 1 addition & 1 deletion php81.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.1.20-fpm
FROM php:8.1.27-fpm

RUN apt-get update && apt-get install -y \
libfreetype6-dev \
Expand Down
2 changes: 1 addition & 1 deletion php82.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.2.7-fpm
FROM php:8.2.15-fpm

RUN apt-get update && apt-get install -y \
libfreetype6-dev \
Expand Down
66 changes: 66 additions & 0 deletions php83.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
FROM php:8.3.2-fpm

RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
zlib1g-dev \
libxml2-dev \
libzip-dev \
libonig-dev \
graphviz \
libicu-dev \
ghostscript \
supervisor \
dos2unix mc htop nano wget nginx \

# Nodejs
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& npm install -g yarn \

# GD
&& docker-php-ext-configure gd \
--with-freetype=/usr/include/ \
--with-jpeg=/usr/include/ \
--with-freetype=/usr/include/ \
&& docker-php-ext-install gd \

# Swoole
&& pecl install swoole \
&& docker-php-ext-enable swoole \

# Redis
&& pecl install -o -f redis \
&& rm -rf /tmp/pear \
&& docker-php-ext-enable redis \

&& docker-php-ext-install pdo_mysql \
&& docker-php-ext-install zip \
&& docker-php-ext-install intl \
&& docker-php-ext-install exif \
&& docker-php-ext-install sockets \
&& docker-php-ext-install pcntl \
&& docker-php-source delete \

# Postgresql
&& apt-get install -y libpq-dev \
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
&& docker-php-ext-install pdo pdo_pgsql pgsql \

# Composer
&& curl -sS https://getcomposer.org/installer | php -- \
--install-dir=/usr/local/bin --filename=composer \

# Aliases
&& echo "\
alias 'p=/var/www/app/vendor/bin/phpunit' \n\
alias 'pf=/var/www/app/vendor/bin/phpunit --filter' \n\
" >> ~/.bashrc

WORKDIR /var/www/app/

EXPOSE 9000

CMD ["php-fpm"]

0 comments on commit 8c64921

Please sign in to comment.