FROM caddy:latest # Ensure the www-data user and group match the host system # RUN groupadd -g 1000 www-data && useradd -u 1000 -g www-data -s /bin/bash www-data # Set permissions for /var/www/html # RUN chown -R www-data:www-data /var/www/html