Shiny (Python)

Shiny (Python)#

To deploy a Shiny Python application to Ploomber Cloud you need:

  • A Dockerfile

  • A Shiny Python project


Use this template Dockerfile:

FROM python:3.11

COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt

ENTRYPOINT ["shiny", "run", "", "--host", "", "--port", "80"]

Testing locally#

To test your app, you can use docker locally:

# build the docker image
docker build . -t shiny-app

# run it
docker run -p 5000:80 shiny-app

Now, open to see your app.


Once you have all your files, create a zip file.

To deploy a Shiny app from the deployment menu, select the Docker option and follow the instructions: