From d7fbbf8bd9fa8c5a3b285995c1a3f4602c12feb1 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 18 Feb 2021 16:41:44 -0800 Subject: [PATCH] Add zuul user to container To match the Zuul service containers, add a zuul user inside this container so that it may more easily run as a non-root user. Change-Id: Id1b65ac327082c14dc635497b4666ae69ab9c2f7 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 254cae8..094e637 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,8 @@ RUN assemble FROM docker.io/opendevorg/uwsgi-base as zuul-storage-proxy COPY --from=builder /output/ /output -RUN /output/install-from-bindep +RUN /output/install-from-bindep \ + && useradd -u 10001 -m -d /var/lib/zuul -c "Zuul Daemon" zuul EXPOSE 8000 ENV UWSGI_HTTP_SOCKET=:8000 UWSGI_PROCESSES=10 UWSGI_THREADS=1