zuul-storage-proxy/Dockerfile
James E. Blair 98e92bdd46 Switch to uwsgi
Use the opendev uwsgi base image.  A few additional changes are
needed beyond the container switch:

* WSGI protocol says headers must be a python list.  Uwsgi is very
  literal about that and does not permit an iterable, so we coerce
  items() to a list.
* Add the zuul_storage_proxy package to the setup.cfg files list so
  it gets installed.
* Remove a debug print.

Change-Id: I801d8b37699af8b937cc68d32f2a85c50eb91eb9
2021-02-11 15:54:54 -08:00

14 lines
333 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
EXPOSE 8000
ENV UWSGI_HTTP_SOCKET=:8000 UWSGI_PROCESSES=10 UWSGI_THREADS=1
CMD uwsgi --mount /=zuul_storage_proxy:proxy