Install custom packages on my deploy, do I need Docker?

Hey folks,

Say I want to install mongotools in order to access the mongoexport command within my code.

Am I expected to create a Docker image for deployment on Render? Or is it possible to run the “apt-get” command during the build?

I am running a Next.js app (Node.js) so it’s not a huge deal to create a Dockerfile, but I’d rather use simpler options if that’s possible.

Hey Eric,

You might not have to go that far - it’s a big step. Please upvote this feature

If you can find a binary of mongoexport you can include it in your deployment in the build process - in this example I’m grabbing an archive and including it in the build so that it’s available in the final deployment,


John B

Makes sense! I must admit creating the Docker image is a tough one here as I am using a monorepo with PNPM workspaces and shared code
For which system should I build the binary? Because I guess it depends on the OS used by (probably some Ubuntu or Alpine image)

Yes, best to get the right one

$ cat /etc/os-releasePRETTY_NAME="Debian GNU/Linux 10 (buster)"NAME="Debian GNU/Linux"VERSION_ID="10"VERSION="10 (buster)"VERSION_CODENAME=busterID=debianHOME_URL=""SUPPORT_URL=""BUG_REPORT_URL=""

John B

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.