I build my own docker images and run them on Heroku. This works just great, heres an example Docker file:
FROM node:14-alpine
WORKDIR /app
COPY ./ncc/web ./
CMD node ./index.js
The problem is I would also like to use Jemalloc for better memory management when running node. I have used this Jemalloc buildpack in the past when using normal node dynos (not docker images) and it has worked great:
https://github.com/gaffneyc/heroku-buildpack-jemalloc
If I understand correctly however buildpacks and docker images arent compatible? So this buildpack wont be available from inside my image automatically?
Is there a way to get the buildpack to run inside my image?
If not does anyone know how I might go about installing and using jemalloc in my instance?