Skip to content

Commit ac83ba7

Browse files
upgrade to php 8.5
1 parent 1d4b0f1 commit ac83ba7

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# docker-compose build
2-
FROM php:8.4-fpm-alpine
2+
FROM php:8.5-fpm-alpine
33

4-
ENV FEWOHBEE_VERSION latest
4+
ENV FEWOHBEE_VERSION=latest
55

6-
ARG PHP_EXTS="redis intl gd opcache pdo_mysql"
6+
ARG PHP_EXTS="redis intl gd pdo_mysql"
77

88
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
99

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33
# fewohbee-phpfpm
44

5-
This Docker image is based on [PHP 8.3-fpm-alpine](https://hub.docker.com/_/php/), [phpredis](https://github.com/phpredis/phpredis) and latest [composer](https://hub.docker.com/_/composer).
5+
This Docker image is based on [PHP 8.5-fpm-alpine](https://hub.docker.com/_/php/), [phpredis](https://github.com/phpredis/phpredis) and latest [composer](https://hub.docker.com/_/composer).
66
This image is optimized for the [guesthouse administration](https://github.com/developeregrem/fewohbee) tool (Pensionsverwaltung). See [FewohBee's website](https://www.fewohbee.de)
77
When running this image it will clone the latest stable release of the tool and installs all required PHP/Symfony dependencies.
88

99
## supported tags
1010
- `:latest` - always pull the latest image
11-
- `:8.2` - PHP 8.2 latest build
12-
- `:8.1` - PHP 8.1 latest build
1311

1412
## Supported architectures
1513
[`amd64`](https://hub.docker.com/r/amd64/php/), [`arm64v8`](https://hub.docker.com/r/arm64v8/php/)

entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ if [ ! -f "/firstrun" ]; then
2323

2424
git checkout -f $latestTag
2525

26+
appDebug="APP_DEBUG=0"
2627
if [ "$APP_ENV" == "prod" ] || [ "$APP_ENV" == "redis" ]
2728
then
2829
composer install --no-dev --no-interaction --optimize-autoloader
2930
else
3031
composer --no-interaction install
32+
appDebug="APP_DEBUG=1"
3133
fi
3234
# make sure that user www-data from php and web container can access files
3335
chown -R 82:33 $pveFolder
@@ -36,6 +38,9 @@ if [ ! -f "/firstrun" ]; then
3638

3739
# clear doctrine cache
3840
su -p www-data -s /bin/sh -c "php bin/console cache:pool:clear doctrine.result_cache_pool doctrine.system_cache_pool"
41+
42+
# compile assets
43+
su -p www-data -s /bin/sh -c "$appDebug php bin/console asset-map:compile"
3944
fi
4045
echo "1" > /firstrun
4146

0 commit comments

Comments
 (0)