Skip to content
Permalink
Browse files

Remove jemalloc from Docker image & reduce MALLOC_ARENA_MAX

  • Loading branch information
DarthSim committed Jan 9, 2020
1 parent e51a70c commit 9c7233a740e426f4f1a79989cf28715f04cb83a2
Showing with 1 addition and 3 deletions.
  1. +1 −3 docker/Dockerfile
@@ -108,16 +108,14 @@ RUN apt-get update \
libheif1 \
libtiff5 \
libimagequant0 \
libjemalloc2 \
&& rm -rf /var/lib/apt/lists/*

COPY --from=0 /usr/local/bin/imgproxy /usr/local/bin/
COPY --from=0 /usr/local/lib /usr/local/lib

ENV VIPS_WARNING=0
ENV MALLOC_ARENA_MAX=4
ENV MALLOC_ARENA_MAX=2
ENV LD_LIBRARY_PATH /lib64:/usr/lib64:/usr/local/lib
ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2

CMD ["imgproxy"]

0 comments on commit 9c7233a

Please sign in to comment.
You can’t perform that action at this time.