Shiny for Python app fails to load

Hi,

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

FROM <CUSTOM-BASE-IMAGE>

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
EXPOSE 8080
CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:8080", "-k", "uvicorn.workers.UvicornWorker"]

and the app configuration for ShinyProxy looks like:

  - id: pyshiny-demo
    container-image: <REGISTRY>/shinyproxy-pyshiny-airmass
    port: 8080
    container-env:
      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?