mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-25 03:14:39 +03:00
[PR #894] [CLOSED] Speed up Docker build and fix entrypoint permissions #1037
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/894
Author: @PseudoResonance
Created: 1/8/2025
Status: ❌ Closed
Base:
main← Head:fix-docker-entrypoint-permissions📝 Commits (4)
ac6739cSpeed up Docker build and fix entrypoint permissions84c2bb5Update Docker build for Vitec57a0feInclude license in image0c59e3cShorten docker compose build and remove unnecessary filament/actions📊 Changes
4 files changed (+35 additions, -22 deletions)
View changed files
📝
.dockerignore(+12 -0)📝
.github/docker/entrypoint.sh(+3 -3)📝
Dockerfile(+19 -19)📝
compose.yml(+1 -0)📄 Description
The Docker entrypoint script runs artisan commands as root, which creates directories under
storage/framework/cache/datathat are owned by root. This causes errors when running the panel, as it's unable to write to parts of the cache. By running the commands as www-data instead, the permissions are kept unaffected.I added the Dockerfile to the compose file, so that the image can easily be built from source if desired.
As the
yarn installcommand can take a long time, I changed the Dockerfile to copy just the necessary package/yarn files for the installation first. Once that is completed, it copies the rest and builds the app. This sped up cached builds on my computer by about 80 seconds.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.