zuul-storage-proxy/Dockerfile
James E. Blair d7fbbf8bd9 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
2021-02-18 16:41:44 -08:00

15 lines
399 B
Docker

FROM docker.io/opendevorg/python-builder as builder
COPY . /tmp/src
RUN assemble
FROM docker.io/opendevorg/uwsgi-base as zuul-storage-proxy
COPY --from=builder /output/ /output
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
CMD uwsgi --mount /=zuul_storage_proxy:proxy