mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
USER 1001 made the image start unprivileged, so the entrypoint skipped the branch that adds the socket's group and honours FLOCI_RUN_AS_ROOT. With a socket owned by a non-root group and mode 660, Docker-backed services could not launch containers, and FLOCI_RUN_AS_ROOT=true had no effect. The image now starts as root like the standard one, and the entrypoint drops to uid 1001. HOME is set to /app because that drop keeps the environment: hooks would otherwise run with HOME=/root, which uid 1001 cannot write to, and pip install would fail. docker exec now defaults to root on this image, as it does on the standard one. Signed-off-by: Hector Ventura <hectorvent@gmail.com>