To deploy a Solara application in Ploomber Cloud you need:

  • A Dockerfile

  • Your code


You need to provide a Dockerfile, you can use this template to get started. The template contains the minimal steps needed for a deployment but you need to modify so it installs any required dependencies and copies your code into the Docker image.

FROM python:3.11

RUN pip install solara

# do not change the --host and --port values
ENTRYPOINT ["solara", "run", "", "--host=", "--port=80"]

Testing locally#

To test your app, you can use docker locally:

# build the docker image
docker build . -t solara

# run it
docker run -p 5000:80 solara

Now, open to see your app.


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

To deploy a Flask app from the deployment menu, follow these instructions: