From 16c858542eeb1a9cd0b77d2d26ed2dd53a9f956f Mon Sep 17 00:00:00 2001 From: Sagent Date: Mon, 8 Jun 2026 19:53:13 +0000 Subject: [PATCH] fix: create empty htpasswd so Caddy basic_auth can start --- pkg/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/Dockerfile b/pkg/Dockerfile index 8037efc..6ad35ce 100644 --- a/pkg/Dockerfile +++ b/pkg/Dockerfile @@ -13,4 +13,8 @@ COPY --chown=www-data:www-data pkg/files/Caddyfile /etc/frankenphp/Caddyfile COPY --chown=www-data:www-data "../public" "/app" # TODO: php.ini +# Caddyfile imports this file via basic_auth (it can be empty, file just must exist) +RUN touch /etc/frankenphp/htpasswd && \ + chown www-data:www-data /etc/frankenphp/htpasswd + USER www-data