Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions frameworks/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
FROM ubuntu:24.04
FROM ubuntu:26.04

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update -yqq && apt-get install -yqq software-properties-common >/dev/null

RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php >/dev/null && \
LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/nginx >/dev/null && \
apt-get update -yqq > /dev/null && apt-get upgrade -yqq >/dev/null && \
RUN apt-get update -yqq > /dev/null && apt-get upgrade -yqq > /dev/null && \
apt-get install -yqq wget git libxml2-dev systemtap-sdt-dev nginx-extras \
zlib1g-dev libpcre3-dev libargon2-dev libsodium-dev libkrb5-dev \
php8.5-fpm php8.5-cli php8.5-pgsql >/dev/null
zlib1g-dev libpcre2-dev libargon2-dev libsodium-dev libkrb5-dev \
php8.5-fpm php8.5-cli php8.5-pgsql > /dev/null

COPY conf/* /etc/php/8.5/fpm/
COPY src/ src/
Expand Down
1 change: 1 addition & 0 deletions frameworks/php/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"api-4",
"api-16",
"static",
"static-tls",
"async-db",
"baseline-h2",
"static-h2",
Expand Down
7 changes: 6 additions & 1 deletion frameworks/php/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ http {
# image/svg+xml;

upstream fastcgi_backend {
server unix:/var/run/php/php-fpm.sock;
server unix:/run/php/php-fpm.sock;
keepalive 36;
}

Expand Down Expand Up @@ -112,6 +112,11 @@ http {
fastcgi_param CONTENT_LENGTH $content_length;
#include /etc/nginx/fastcgi_params;
}

location /static/ {
root /data;
add_header Last-Modified '';
}
}

server {
Expand Down
Loading