[PR #1309] [CLOSED] Example docker image that can update UID/GID #1315

Closed
opened 2026-02-04 19:35:57 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/1309
Author: @kungfoome
Created: 4/27/2025
Status: Closed

Base: mainHead: frankenphp-docker


📝 Commits (1)

  • 80c9086 Add 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.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/1309 **Author:** [@kungfoome](https://github.com/kungfoome) **Created:** 4/27/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `frankenphp-docker` --- ### 📝 Commits (1) - [`80c9086`](https://github.com/pelican-dev/panel/commit/80c9086c6b738f7ddc5dd8369ae45639e1e1b780) Add FrankenPHP Docker configuration ### 📊 Changes **4 files changed** (+363 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `Dockerfile.franken` (+163 -0) ➕ `docker.franken.d/Caddyfile` (+46 -0) ➕ `docker.franken.d/crontab` (+1 -0) ➕ `docker.franken.d/entrypoint.sh` (+153 -0) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 19:35:57 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#1315