Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kane50613/jemalloc-alpine-image

📦 Serving pre-built jemalloc binary here, so you don't need to compile every time.
https://github.com/kane50613/jemalloc-alpine-image

alpine docker jemalloc

Last synced: 2 months ago
JSON representation

📦 Serving pre-built jemalloc binary here, so you don't need to compile every time.

Awesome Lists containing this project

README

        

# jemalloc-alpine-image

📦 Serving pre-built jemalloc binary here, so you don't need to compile every time.

## Usage

```Dockerfile
# Use pre-built jemalloc binary
FROM gary50613/jemalloc-alpine:latest as jemalloc

# With your runner image, ex: node:alpine
FROM node:alpine

# Copy the pre-built binary
COPY --from=jemalloc /usr/local/lib/libjemalloc.so.2 /usr/local/lib/

# Tell nodejs to use jemalloc (optional)
ENV LD_PRELOAD=/usr/local/lib/libjemalloc.so.2
```