fix: give lfx runtime user a home directory

This commit is contained in:
Jonas Miederer 2026-09-14 21:57:16 +02:00
parent b1c8d6c66e
commit 23a3fd6459
2 changed files with 8 additions and 2 deletions

View file

@ -13,8 +13,11 @@ ENV PYTHONUNBUFFERED=1 \
ARG LFX_VERSION=1.12.0
RUN pip install "lfx~=${LFX_VERSION}" requests
# Non-root runtime: uploads persist into the mounted volume.
RUN useradd -r -s /bin/false lfx && mkdir -p /flows && chown lfx /flows
# Non-root runtime: uploads persist into the mounted volume. The user needs
# a home directory: lfx resolves settings/cache paths from $HOME, and
# without one every flow run fails ("Settings service not found").
ENV HOME=/home/lfx
RUN useradd -r -m -s /bin/false lfx && mkdir -p /flows && chown lfx /flows
VOLUME /flows
EXPOSE 6004
USER lfx