remove jemalloc version
I don't use it and don't intend to maintain it. You should really use hardened malloc since it provides substantial hardening against memory corruption bugs such as heap overflows. This comes at the cost of more memory usage.
This commit is contained in:
parent
9e31619f7e
commit
4658647550
1 changed files with 0 additions and 16 deletions
|
@ -1,16 +0,0 @@
|
||||||
# Build Jemalloc
|
|
||||||
FROM alpine:3.13 as build-jemalloc
|
|
||||||
|
|
||||||
ARG JEMALLOC_VERSION=5.2.1
|
|
||||||
|
|
||||||
RUN apk --no-cache add build-base && cd /tmp \
|
|
||||||
&& wget -q https://github.com/jemalloc/jemalloc/releases/download/${JEMALLOC_VERSION}/jemalloc-${JEMALLOC_VERSION}.tar.bz2 \
|
|
||||||
&& mkdir jemalloc && tar xf jemalloc-${JEMALLOC_VERSION}.tar.bz2 -C jemalloc --strip-components 1 \
|
|
||||||
&& cd jemalloc && ./configure && make -j$(getconf _NPROCESSORS_ONLN) && make install
|
|
||||||
|
|
||||||
# Mastodon itself
|
|
||||||
FROM wonderfall/mastodon
|
|
||||||
|
|
||||||
COPY --from=build-jemalloc /usr/local/lib/libjemalloc.so.2 /usr/local/lib/
|
|
||||||
|
|
||||||
ENV LD_PRELOAD="/usr/local/lib/libjemalloc.so.2"
|
|
Loading…
Reference in a new issue