[Docker] Enable YJIT

Gives a small performance boost on prod in exchange for more RAM usage
This commit is contained in:
Earlopain 2023-09-17 14:37:16 +02:00
parent 17b9797657
commit 1c4a79d2ef
No known key found for this signature in database
GPG Key ID: 48860312319ADF61

View File

@ -30,6 +30,7 @@ WORKDIR /app
RUN git config --global --add safe.directory $(pwd) RUN git config --global --add safe.directory $(pwd)
ENV LD_PRELOAD=/usr/lib/libjemalloc.so.2 ENV LD_PRELOAD=/usr/lib/libjemalloc.so.2
ENV RUBY_YJIT_ENABLE=1
# Setup node and yarn # Setup node and yarn
COPY --from=node-builder /usr/lib /usr/lib COPY --from=node-builder /usr/lib /usr/lib