title: Heroku Buildpacks in Docker Images
body: <p>I build my own docker images and run them on Heroku. This works just great, heres an example Docker file:</p>
  <pre><code>FROM node:14-alpine
  WORKDIR /app
  COPY ./ncc/web ./
  CMD node ./index.js
  </code></pre>
  <p>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:</p>
  <p><a href="https://github.com/gaffneyc/heroku-buildpack-jemalloc" rel="nofollow noreferrer">https://github.com/gaffneyc/heroku-buildpack-jemalloc</a></p>
  <p>If I understand correctly however buildpacks and docker images arent compatible? So this buildpack wont be available from inside my image automatically?</p>
  <p>Is there a way to get the buildpack to run inside my image?</p>
  <p>If not does anyone know how I might go about installing and using jemalloc in my instance?</p>