mirror of
https://github.com/photoprism/photoprism.git
synced 2026-03-02 22:57:18 -05:00
Docker: The script create-users.sh create 1803 files in the Docker image #2382
Labels
No labels
ai
android
api
auth
awesome
bug
bug
ci
cli
config
database
declined
deprecated
docker
docs 📚
documents
duplicate
easy
enhancement
enhancement
enhancement
epic
faces
feedback wanted
frontend
hacktoberfest
help wanted
idea
in-progress
incomplete
index
invalid
ios
labels
live
live
low-priority
macos
member-feature
metadata
mobile
nas
needs-analysis
no-coding-required
no-coding-required
observability
performance
places
please-test
plus-feature
priority
pro-feature
question
raspberry-pi
raw
released
released
released
research
resolved
security
sharing
tested
tests
third-party-issue
thumbnails
upgrade
upstream-issue
ux
vector
video
waiting
won't fix
won't fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/photoprism#2382
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Originally created by @alexislefebvre on GitHub (Aug 7, 2025).
Describe what problem this solves and why this would be valuable to many users
I was analyzing the directories on my server that host an instance of PhotoPrism when I found the
homedirectory for PhotoPrism and it contains 602 users:And 601 directories contains 3 files (
/home/ubuntu/is empty):That means that when the image is decompressed, Docker have to handle 1803 files that are not necessary.
These files are created by this line:
github.com/photoprism/photoprism@2b9a3c9924/scripts/dist/create-users.sh (L59)This is due to the call to
useraddwhich will copy files from the skeleton: https://manpages.debian.org/bookworm/adduser/adduser.conf.5.en.html#SKELDescribe the solution you'd like
Create users without adding these files, so that the decompressing of the Docker images may be slightly faster.
For context, the whole Docker image contains 26786 directories and files.
Describe alternatives you've considered
.
Additional context
I'll look into this issue.
Related: