mimalloc is a compact general purpose allocator with excellent performance
3.1K

mimalloc is a compact general purpose allocator with excellent performance
What can I do with this? This image will provide you with one of the fastest memory allocators that currently exists. Simply add libmimalloc.so to your image and set LD_PRELOAD to it.
FROM 11notes/mimalloc:2.1.9 as mimalloc
FROM 11notes/alpine:stable
COPY --from=mimalloc /usr/lib/libmimalloc.so /usr/lib/
# switch to root during setup
USER root
# setup your app
RUN set -ex; \
setup your app
# add custom entrypoint to image
COPY ./entrypoint.sh /usr/local/bin
# start image as 1000:1000
USER docker
| Parameter | Value | Description |
|---|---|---|
user | docker | user name |
uid | 1000 | user identifier |
gid | 1000 | group identifier |
home | / | home directory of user docker |
| Parameter | Value | Default |
|---|---|---|
TZ | Time Zone | |
DEBUG | Will activate debug option for container image and app (if available) |
These are the main tags for the image. There is also a tag for each commit and its shorthand sha256 value.
It is of my opinion that the :latest tag is super dangerous. Many times, I’ve introduced breaking changes to my images. This would have messed up everything for some people. If you don’t want to change the tag to the latest semver, simply use the short versions of semver. Instead of using :2.2.2 you can use :2 or :2.2. Since on each new version these tags are updated to the latest version of the software, using them is identical to using :latest but at least fixed to a major or minor version.
If you still insist on having the bleeding edge release of this app, simply use the :rolling tag, but be warned! You will get the latest version of the app instantly, regardless of breaking changes or security issues or what so ever. You do this at your own risk!
docker pull 11notes/mimalloc:2.2.2
docker pull ghcr.io/11notes/mimalloc:2.2.2
docker pull quay.io/11notes/mimalloc:2.2.2
This image is provided to you at your own risk. Always make backups before updating an image to a different version. Check the releases for breaking changes. If you have any problems with using this image simply raise an issue, thanks. If you have a question or inputs please create a new discussion instead of an issue. You can find all my other repositories on github.
created 19.05.2025, 13:55:33 (CET)
Content type
Image
Digest
sha256:9fe04fd0c…
Size
80.8 kB
Last updated
over 1 year ago
docker pull 11notes/mimalloc