If you need a platform that’s not already available in our platforms repository it’s pretty easy to create a new one
based on a existing one.

Platforms are Docker images that are used to deploy your application code on tsuru. tsuru provides a
base image which platform developers can use to build upon: base-platform.
This platform provides a base deployment script, which handles package downloading and
extraction in proper path, along with operating system package management.

Every platform in the repository extends the base-platform
adding the specifics of each platform. They are a great way to learn how to create a new one.

As it can be seen, we are just installing some dependencies and preparing the environment for our applications.
The ${SOURCE_DIR}/base/rc/config provides some bootstrap configuration that are usually needed.

Now, let’s define our deploy script, which runs every time a deploy occurs:

Once again we run some base scripts to do some heavy lifting: ${SOURCE_DIR}/base/rc/config and
${SOURCE_DIR}/base/deploy. After that, it’s just a matter of application specifics dependencies using
npm.