From 4658647550aa2a820fc1bda7cb0f7bcac6986afe Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Sat, 5 Jun 2021 19:55:49 +0200 Subject: [PATCH] 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. --- Dockerfile.jemalloc | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 Dockerfile.jemalloc diff --git a/Dockerfile.jemalloc b/Dockerfile.jemalloc deleted file mode 100644 index d9b8e47..0000000 --- a/Dockerfile.jemalloc +++ /dev/null @@ -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"