Skip to content

Commit c8939df

Browse files
authored
feat: update php version to 8.4 (#23)
* feat: update php version to 8.4 * fix: install ansible from trixie directly
1 parent 03c996e commit c8939df

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

Dockerfile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:8.2-fpm-bullseye
1+
FROM php:8.4-fpm-trixie
22

33
WORKDIR /var/www/html
44

@@ -7,10 +7,7 @@ RUN apt-get update \
77
&& apt-get install -y git gnupg mariadb-client libicu-dev libfreetype6-dev libjpeg-dev libpng-dev libpq-dev libzip-dev postgresql-client unzip wget zip zlib1g-dev gnupg2 rsync
88

99
# Install ansible
10-
RUN echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu focal main" > /etc/apt/sources.list.d/ansible.list
11-
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
12-
RUN apt-get update \
13-
&& apt-get install -y ansible ansible-core ansible-lint
10+
RUN apt-get install -y ansible ansible-core ansible-lint
1411

1512
# Install php packages and configure php.ini
1613
RUN echo 'memory_limit=256M' > /usr/local/etc/php/conf.d/memory-limit.ini
@@ -27,10 +24,6 @@ COPY install_composer.sh install_composer.sh
2724
RUN sh install_composer.sh \
2825
&& mv composer.phar /usr/local/bin/composer
2926

30-
RUN wget https://github.com/fabpot/local-php-security-checker/releases/download/v2.0.6/local-php-security-checker_2.0.6_linux_amd64 \
31-
&& chmod +x local-php-security-checker_2.0.6_linux_amd64 \
32-
&& mv local-php-security-checker_2.0.6_linux_amd64 /usr/local/bin/local-php-security-checker
33-
3427
# Ansistrano roles for deployment
3528
RUN ansible-galaxy install ansistrano.deploy ansistrano.rollback
3629

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ A Docker image based on official PHP, with some extras for development / CI.
1717
- ansible-lint
1818
- ansistrano
1919
- composer
20-
- local-php-security-checker
2120
- mariadb-client
2221
- node 22
2322
- postgresql-client
24-
- sentry cli
23+
- sentry cli

0 commit comments

Comments
 (0)