mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-24 19:08:53 +03:00
[PR #1309] [CLOSED] Example docker image that can update UID/GID #1315
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pelican-dev/panel/pull/1309
Author: @kungfoome
Created: 4/27/2025
Status: ❌ Closed
Base:
main← Head:frankenphp-docker📝 Commits (1)
80c9086Add FrankenPHP Docker configuration📊 Changes
4 files changed (+363 additions, -0 deletions)
View changed files
➕
Dockerfile.franken(+163 -0)➕
docker.franken.d/Caddyfile(+46 -0)➕
docker.franken.d/crontab(+1 -0)➕
docker.franken.d/entrypoint.sh(+153 -0)📄 Description
I had recently opened an issue to update the UID/GID of the container https://github.com/pelican-dev/panel/issues/1077. This is so that it's easier to mount persistent files and have the proper permissions both within the container and on the host.
While this is not final by any means, it's just an example to show how this could possibly be done. The container does need to be run as root to update permissions, but if that was taken out, you could run the image as a normal user without root.
I also used franken since it included caddy already, just to speed things up a bit.
Nothing runs as root except to change permissions, after which is runs as a normal user. This includes any composer commands as well. The key is also generated using the artisan command and a default admin is created just to get the panel up and running out of the box.
Hopefully we can incorporate some changes to help support changing the uid and gid if you wanted to.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.