Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion deployApi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN apt-get update \
ffmpeg \
ghostscript \
imagemagick \
libjemalloc2 \
libmagic-dev \
libmagickwand-dev \
libmariadb-dev \
Expand All @@ -29,7 +30,11 @@ RUN apt-get update \
docker-ce \
docker-ce-cli \
containerd.io \
&& apt-get clean
&& apt-get clean \
&& ln -s /usr/lib/$(uname -m)-linux-gnu/libjemalloc.so.2 /usr/local/lib/libjemalloc.so

# jemalloc stops glibc arena fragmentation from ratcheting up RSS in threaded Puma/Sidekiq
ENV LD_PRELOAD="/usr/local/lib/libjemalloc.so"

# Setup the folder where we will deploy the code
WORKDIR /doubtfire
Expand Down
7 changes: 6 additions & 1 deletion deployAppSvr.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN apt-get update \
ffmpeg \
ghostscript qpdf \
imagemagick \
libjemalloc2 \
libmagic-dev \
libmagickwand-dev \
libmariadb-dev \
Expand All @@ -32,7 +33,11 @@ RUN apt-get update \
docker-ce \
docker-ce-cli \
containerd.io \
&& apt-get clean
&& apt-get clean \
&& ln -s /usr/lib/$(uname -m)-linux-gnu/libjemalloc.so.2 /usr/local/lib/libjemalloc.so

# jemalloc stops glibc arena fragmentation from ratcheting up RSS in threaded Puma/Sidekiq
ENV LD_PRELOAD="/usr/local/lib/libjemalloc.so"

# Setup the folder where we will deploy the code
WORKDIR /doubtfire
Expand Down
Loading