Create home folder (#85)

* Create home folder for modelrunner user

* adds --home-dir to make it more clear
This commit is contained in:
Ignasi 2025-06-16 19:46:18 +02:00 committed by GitHub
parent 1a5e637426
commit 64153a7b4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ FROM docker/docker-model-backend-llamacpp:${LLAMA_SERVER_VERSION}-${LLAMA_SERVER
FROM ${BASE_IMAGE} AS final
# Create non-root user
RUN groupadd --system modelrunner && useradd --system --gid modelrunner modelrunner
RUN groupadd --system modelrunner && useradd --system --gid modelrunner --create-home --home-dir /home/modelrunner modelrunner
# Install ca-certificates for HTTPS
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*