diff --git a/Caddyfile b/Caddyfile new file mode 100644 index 0000000..a62a5f9 --- /dev/null +++ b/Caddyfile @@ -0,0 +1,11 @@ +{ + auto_https off + frankenphp +} + +:80 { + root * /app/public + encode zstd br gzip + php_server + file_server +} diff --git a/Dockerfile b/Dockerfile index c814681..f4e2fb9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,9 @@ -ARG VERSION="latest" -FROM "jcabillot/phpapache:${VERSION}" +FROM dunglas/frankenphp:1-php8.5-alpine LABEL maintainer="Julien Cabillot " -COPY "root" "/var/www/html" +WORKDIR /app + +COPY Caddyfile /etc/frankenphp/Caddyfile +COPY --chown=www-data:www-data root /app/public + +USER www-data diff --git a/renovate.json b/renovate.json index d04175d..7190a60 100644 --- a/renovate.json +++ b/renovate.json @@ -1,17 +1,3 @@ { - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "customManagers": [ - { - "customType": "regex", - "description": "Detect ARG VERSION pin for jcabillot/phpapache base image", - "managerFilePatterns": [ - "/^Dockerfile$/" - ], - "matchStrings": [ - "ARG\\s+VERSION=\"(?[^\"]+)\"" - ], - "depNameTemplate": "jcabillot/phpapache", - "datasourceTemplate": "docker" - } - ] + "$schema": "https://docs.renovatebot.com/renovate-schema.json" }