fix(Dockerfile): loosen image-baked dir modes for rootless runtimes

This commit is contained in:
Erwan Leboucher 2026-05-15 00:09:43 +02:00
parent 5e518b1c10
commit 9243d0c9d0
No known key found for this signature in database
GPG key ID: E191CC9EB650480E

View file

@ -46,8 +46,10 @@ WORKDIR /apptoo
# UID/GID alignment and filesystem preparation, then execs the server as this user.
RUN groupadd -g 1024 hermeswebui \
&& useradd -u 1024 -d /home/hermeswebui -g hermeswebui -G users -s /bin/bash -m hermeswebui \
&& mkdir -p /app /uv_cache \
&& chown -R hermeswebui:hermeswebui /home/hermeswebui /app /uv_cache
&& mkdir -p /app /uv_cache /workspace \
&& chown -R hermeswebui:hermeswebui /home/hermeswebui /app /uv_cache /workspace \
&& chmod 0755 /home/hermeswebui \
&& chmod 1777 /app /uv_cache /workspace
COPY --chmod=555 docker_init.bash /hermeswebui_init.bash