Skip to content

Commit

Permalink
use jemalloc memory allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
camallen committed Mar 20, 2019
1 parent d8cabee commit f849bca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ RUN apt-get update && \
supervisor \
libpq-dev \
tmpreaper \
libjemalloc1 \
&& \
apt-get clean && rm -rf /var/lib/apt/lists/*

ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1

RUN mkdir config && curl "https://ip-ranges.amazonaws.com/ip-ranges.json" > config/aws_ips.json

ADD ./Gemfile /rails_app/
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ RUN apt-get update && apt-get -y upgrade && \
libpq-dev \
postgresql-client-9.4 \
tmpreaper \
libjemalloc1 \
&& \
apt-get clean

ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1

ADD ./Gemfile /rails_app/
ADD ./Gemfile.lock /rails_app/

Expand Down

0 comments on commit f849bca

Please sign in to comment.