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:
Wonderfall 2021-06-05 19:55:49 +02:00 committed by GitHub
parent 9e31619f7e
commit 4658647550
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"