zuul-storage-proxy/Dockerfile
James E. Blair d9573ec07a Allow mounting somewhere other than /
This allows the app to be served from something other than the
root of the server (eg, foo.example.com/logs).

The --manage-script-name argument tells uwsgi to rewrite PATH_INFO
so that the app doesn't see mountpoint part of the path.

Change-Id: Id1cb90752fedd42534809fdfdddb13e29f8262c5
2021-02-23 13:25:41 -08:00

15 lines
443 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 MOUNTPOINT=/
CMD uwsgi --mount $MOUNTPOINT=zuul_storage_proxy:proxy --manage-script-name