Move adding jemalloc to preload to last build step

This commit is contained in:
Maksim Karasev 2021-08-30 11:38:00 +03:00
parent 66dbd4bac8
commit 4a13085f99
1 changed files with 2 additions and 2 deletions

View File

@ -20,12 +20,12 @@ RUN apt-get update && \
python3 \
libjemalloc-dev \
build-essential \
&& find /usr/ -name "*jemalloc.so" > /etc/ld.so.preload \
&& yarn --version\
&& yarn workspaces focus server\
&& yarn workspace server build \
&& yarn cache clean --all \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& find /usr/ -name "*jemalloc.so" > /etc/ld.so.preload
VOLUME ["/images", "/db"]
ENV IMAGE_DIR="/images"