Skip to content

Commit 7113d24

Browse files
committed
[php] Nette update to PHP/8.4
1 parent 0a9ab06 commit 7113d24

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

frameworks/PHP/nette/composer.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,17 @@
66
"license": ["MIT", "BSD-3-Clause", "GPL-2.0", "GPL-3.0"],
77
"require": {
88
"php": ">= 7.2",
9-
"nette/application": "^3.1",
10-
"nette/bootstrap": "^3.1",
11-
"nette/caching": "^3.1",
12-
"nette/database": "^3.1",
9+
"nette/application": "^3.2",
10+
"nette/bootstrap": "^3.2",
11+
"nette/caching": "^3.3",
12+
"nette/database": "^3.2",
1313
"nette/di": "^3.0",
14-
"nette/finder": "^2.5",
14+
"nette/finder": "^3.0",
1515
"nette/forms": "^3.1",
1616
"nette/http": "^3.1",
17-
"nette/mail": "^3.1",
18-
"nette/robot-loader": "^3.3",
17+
"nette/mail": "^4.0",
1918
"nette/security": "^3.1",
20-
"nette/utils": "^3.2",
19+
"nette/utils": "^4.0",
2120
"latte/latte": "^2.11 || ^3.0",
2221
"tracy/tracy": "^2.8"
2322
},

frameworks/PHP/nette/nette.dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
1-
FROM ubuntu:22.04
1+
FROM ubuntu:24.04
22

33
ARG DEBIAN_FRONTEND=noninteractive
44

55
RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
66
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
77
RUN apt-get install -yqq nginx git unzip \
8-
php8.3-fpm php8.3-mysql php8.3-xml php8.3-mbstring php8.3-intl php8.3-dev php8.3-curl > /dev/null
8+
php8.4-fpm php8.4-mysql php8.4-xml php8.4-mbstring php8.4-intl php8.4-dev php8.4-curl > /dev/null
99

10-
COPY deploy/conf/* /etc/php/8.3/fpm/
10+
COPY deploy/conf/* /etc/php/8.4/fpm/
1111

12-
ADD ./ /nette
1312
WORKDIR /nette
14-
13+
COPY --link . .
1514
#ENV NETTE_DIR="/nette/src"
1615

1716
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
1817

1918
RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
2019

21-
RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/8.3/fpm/php-fpm.conf ; fi;
20+
RUN if [ $(nproc) = 2 ]; then sed -i "s|pm.max_children = 1024|pm.max_children = 512|g" /etc/php/8.4/fpm/php-fpm.conf ; fi;
2221

2322
RUN chmod -R 777 /nette
2423

2524
EXPOSE 8080
2625

27-
CMD service php8.3-fpm start && \
26+
CMD service php8.4-fpm start && \
2827
nginx -c /nette/deploy/nginx.conf 2>&1 > /dev/stderr

0 commit comments

Comments
 (0)