To deploy a Docker-based web application in Ploomber Cloud you need:


You need to provide a Dockerfile, you can use this flask-based template to get started.

For a successful deployment, you app must run in port 80.

Here’s an example using flask:

FROM python:3.11

RUN pip install flask gunicorn

ENTRYPOINT ["gunicorn", "app:app", "run", "--bind", ""]

Once you have all your files, .zip them. For example, a simple app will contain two files:

  • Dockerfile


Testing locally#

To test your app, you can use docker locally:

# build the docker image
docker build . -t myapp

# run it
docker run -p 5000:80 myapp

Now, open to see your app.


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


To ensure your app doesn’t break on re-deployments, pin your dependencies.