Shiny for Python app fails to load


I try to run a Shiny for Python app on ShinyProxy 2.6.1.

While the Docker container works fine locally (and when run on the server directly as well), I just get a “Container did not respond in time” on ShinyProxy.

The Dockerfile, I use to create the image is


USER docker
WORKDIR /home/docker 
COPY requirements.txt /home/docker
RUN pip3 install --no-cache-dir --upgrade -r requirements.txt
RUN pip3 install gunicorn
COPY . /home/docker
CMD ["gunicorn", "app:app", "--bind", "", "-k", "uvicorn.workers.UvicornWorker"]

and the app configuration for ShinyProxy looks like:

  - id: pyshiny-demo
    container-image: <REGISTRY>/shinyproxy-pyshiny-airmass
    port: 8080
      SCRIPT_NAME: "#{proxy.getRuntimeValue('SHINYPROXY_PUBLIC_PATH').replaceFirst('/$','')}"
    target-path: "#{proxy.getRuntimeValue('SHINYPROXY_PUBLIC_PATH')}"

Using uvicorn as recommended in the docs didn’t work either.

Any idea how to debug further?