Browse Source

[ruby] Use relative path to jemalloc (#9030)

This makes sure it works on m1/m2 architecture as well.
Linux is capable of resolving the path to the library.
Petrik de Heus 1 year ago
parent
commit
8cad8194b9
34 changed files with 75 additions and 25 deletions
  1. 1 1
      frameworks/Ruby/agoo/agoo.dockerfile
  2. 5 0
      frameworks/Ruby/grape/grape-unicorn.dockerfile
  3. 5 0
      frameworks/Ruby/grape/grape.dockerfile
  4. 1 1
      frameworks/Ruby/hanami/hanami.dockerfile
  5. 1 1
      frameworks/Ruby/rack-sequel/rack-sequel-passenger-mri.dockerfile
  6. 1 1
      frameworks/Ruby/rack-sequel/rack-sequel-postgres-passenger-mri.dockerfile
  7. 1 1
      frameworks/Ruby/rack-sequel/rack-sequel-postgres-unicorn-mri.dockerfile
  8. 1 1
      frameworks/Ruby/rack-sequel/rack-sequel-postgres.dockerfile
  9. 1 1
      frameworks/Ruby/rack-sequel/rack-sequel-unicorn-mri.dockerfile
  10. 1 1
      frameworks/Ruby/rack-sequel/rack-sequel.dockerfile
  11. 1 1
      frameworks/Ruby/rack/rack-falcon.dockerfile
  12. 1 1
      frameworks/Ruby/rack/rack-unicorn.dockerfile
  13. 6 1
      frameworks/Ruby/rack/rack.dockerfile
  14. 1 1
      frameworks/Ruby/rails/rails-mysql.dockerfile
  15. 1 1
      frameworks/Ruby/rails/rails.dockerfile
  16. 1 1
      frameworks/Ruby/roda-sequel/roda-sequel-passenger-mri.dockerfile
  17. 1 1
      frameworks/Ruby/roda-sequel/roda-sequel-postgres-passenger-mri.dockerfile
  18. 1 1
      frameworks/Ruby/roda-sequel/roda-sequel-postgres-unicorn-mri.dockerfile
  19. 1 1
      frameworks/Ruby/roda-sequel/roda-sequel-postgres.dockerfile
  20. 1 1
      frameworks/Ruby/roda-sequel/roda-sequel-unicorn-mri.dockerfile
  21. 1 1
      frameworks/Ruby/roda-sequel/roda-sequel.dockerfile
  22. 5 0
      frameworks/Ruby/sinatra-sequel/sinatra-sequel-base.dockerfile
  23. 5 0
      frameworks/Ruby/sinatra-sequel/sinatra-sequel-passenger-mri.dockerfile
  24. 5 0
      frameworks/Ruby/sinatra-sequel/sinatra-sequel-postgres-passenger-mri.dockerfile
  25. 5 0
      frameworks/Ruby/sinatra-sequel/sinatra-sequel-postgres-unicorn-mri.dockerfile
  26. 5 0
      frameworks/Ruby/sinatra-sequel/sinatra-sequel-postgres.dockerfile
  27. 5 0
      frameworks/Ruby/sinatra-sequel/sinatra-sequel-unicorn-mri.dockerfile
  28. 5 0
      frameworks/Ruby/sinatra-sequel/sinatra-sequel.dockerfile
  29. 1 1
      frameworks/Ruby/sinatra/sinatra-passenger-mri.dockerfile
  30. 1 1
      frameworks/Ruby/sinatra/sinatra-postgres-passenger-mri.dockerfile
  31. 1 1
      frameworks/Ruby/sinatra/sinatra-postgres-unicorn-mri.dockerfile
  32. 1 1
      frameworks/Ruby/sinatra/sinatra-postgres.dockerfile
  33. 1 1
      frameworks/Ruby/sinatra/sinatra-unicorn-mri.dockerfile
  34. 1 1
      frameworks/Ruby/sinatra/sinatra.dockerfile

+ 1 - 1
frameworks/Ruby/agoo/agoo.dockerfile

@@ -11,7 +11,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 WORKDIR /rack
 WORKDIR /rack
 
 

+ 5 - 0
frameworks/Ruby/grape/grape-unicorn.dockerfile

@@ -2,6 +2,11 @@ FROM ruby:3.3
 
 
 ENV RUBY_YJIT_ENABLE=1
 ENV RUBY_YJIT_ENABLE=1
 
 
+# Use Jemalloc
+RUN apt-get update && \
+    apt-get install -y --no-install-recommends libjemalloc2
+ENV LD_PRELOAD=libjemalloc.so.2
+
 RUN apt-get update -yqq && apt-get install -yqq nginx
 RUN apt-get update -yqq && apt-get install -yqq nginx
 
 
 ADD ./ /grape
 ADD ./ /grape

+ 5 - 0
frameworks/Ruby/grape/grape.dockerfile

@@ -2,6 +2,11 @@ FROM ruby:3.3
 
 
 ENV RUBY_YJIT_ENABLE=1
 ENV RUBY_YJIT_ENABLE=1
 
 
+# Use Jemalloc
+RUN apt-get update && \
+    apt-get install -y --no-install-recommends libjemalloc2
+ENV LD_PRELOAD=libjemalloc.so.2
+
 ADD ./ /grape
 ADD ./ /grape
 
 
 WORKDIR /grape
 WORKDIR /grape

+ 1 - 1
frameworks/Ruby/hanami/hanami.dockerfile

@@ -5,7 +5,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 WORKDIR /hanami
 WORKDIR /hanami
 
 

+ 1 - 1
frameworks/Ruby/rack-sequel/rack-sequel-passenger-mri.dockerfile

@@ -9,7 +9,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
 RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
 
 

+ 1 - 1
frameworks/Ruby/rack-sequel/rack-sequel-postgres-passenger-mri.dockerfile

@@ -9,7 +9,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
 RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
 
 

+ 1 - 1
frameworks/Ruby/rack-sequel/rack-sequel-postgres-unicorn-mri.dockerfile

@@ -9,7 +9,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
 RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
 
 

+ 1 - 1
frameworks/Ruby/rack-sequel/rack-sequel-postgres.dockerfile

@@ -9,7 +9,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
 RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
 
 

+ 1 - 1
frameworks/Ruby/rack-sequel/rack-sequel-unicorn-mri.dockerfile

@@ -9,7 +9,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
 RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
 
 

+ 1 - 1
frameworks/Ruby/rack-sequel/rack-sequel.dockerfile

@@ -9,7 +9,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
 RUN bundle install --jobs=4 --gemfile=/rack-sequel/Gemfile
 
 

+ 1 - 1
frameworks/Ruby/rack/rack-falcon.dockerfile

@@ -5,7 +5,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 WORKDIR /rack
 WORKDIR /rack
 
 

+ 1 - 1
frameworks/Ruby/rack/rack-unicorn.dockerfile

@@ -5,7 +5,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 WORKDIR /rack
 WORKDIR /rack
 
 

+ 6 - 1
frameworks/Ruby/rack/rack.dockerfile

@@ -1,12 +1,17 @@
 FROM ruby:3.4-rc
 FROM ruby:3.4-rc
 
 
-ENV BUNDLE_FORCE_RUBY_PLATFORM=true
 ENV RUBY_YJIT_ENABLE=1
 ENV RUBY_YJIT_ENABLE=1
 
 
+# Use Jemalloc
+RUN apt-get update && \
+    apt-get install -y --no-install-recommends libjemalloc2
+ENV LD_PRELOAD=libjemalloc.so.2
+
 WORKDIR /rack
 WORKDIR /rack
 
 
 COPY Gemfile  ./
 COPY Gemfile  ./
 
 
+ENV BUNDLE_FORCE_RUBY_PLATFORM=true
 RUN bundle config set without 'development test'
 RUN bundle config set without 'development test'
 RUN bundle install --jobs=8
 RUN bundle install --jobs=8
 
 

+ 1 - 1
frameworks/Ruby/rails/rails-mysql.dockerfile

@@ -10,7 +10,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 COPY ./Gemfile* /rails/
 COPY ./Gemfile* /rails/
 
 

+ 1 - 1
frameworks/Ruby/rails/rails.dockerfile

@@ -9,7 +9,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 COPY ./Gemfile* /rails/
 COPY ./Gemfile* /rails/
 
 

+ 1 - 1
frameworks/Ruby/roda-sequel/roda-sequel-passenger-mri.dockerfile

@@ -8,7 +8,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 ENV BUNDLE_FORCE_RUBY_PLATFORM=true
 ENV BUNDLE_FORCE_RUBY_PLATFORM=true
 RUN bundle install --jobs=8
 RUN bundle install --jobs=8

+ 1 - 1
frameworks/Ruby/roda-sequel/roda-sequel-postgres-passenger-mri.dockerfile

@@ -8,7 +8,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 ENV BUNDLE_FORCE_RUBY_PLATFORM=true
 ENV BUNDLE_FORCE_RUBY_PLATFORM=true
 RUN bundle install --jobs=8
 RUN bundle install --jobs=8

+ 1 - 1
frameworks/Ruby/roda-sequel/roda-sequel-postgres-unicorn-mri.dockerfile

@@ -8,7 +8,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 ENV BUNDLE_FORCE_RUBY_PLATFORM=true
 ENV BUNDLE_FORCE_RUBY_PLATFORM=true
 RUN bundle install --jobs=8
 RUN bundle install --jobs=8

+ 1 - 1
frameworks/Ruby/roda-sequel/roda-sequel-postgres.dockerfile

@@ -8,7 +8,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 ENV BUNDLE_FORCE_RUBY_PLATFORM=true
 ENV BUNDLE_FORCE_RUBY_PLATFORM=true
 RUN bundle install --jobs=8
 RUN bundle install --jobs=8

+ 1 - 1
frameworks/Ruby/roda-sequel/roda-sequel-unicorn-mri.dockerfile

@@ -8,7 +8,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 ENV BUNDLE_FORCE_RUBY_PLATFORM=true
 ENV BUNDLE_FORCE_RUBY_PLATFORM=true
 RUN bundle install --jobs=8
 RUN bundle install --jobs=8

+ 1 - 1
frameworks/Ruby/roda-sequel/roda-sequel.dockerfile

@@ -8,7 +8,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 ENV BUNDLE_FORCE_RUBY_PLATFORM=true
 ENV BUNDLE_FORCE_RUBY_PLATFORM=true
 RUN bundle install --jobs=8
 RUN bundle install --jobs=8

+ 5 - 0
frameworks/Ruby/sinatra-sequel/sinatra-sequel-base.dockerfile

@@ -2,6 +2,11 @@ FROM ruby:3.4-rc
 
 
 ENV RUBY_YJIT_ENABLE=1
 ENV RUBY_YJIT_ENABLE=1
 
 
+# Use Jemalloc
+RUN apt-get update && \
+    apt-get install -y --no-install-recommends libjemalloc2
+ENV LD_PRELOAD=libjemalloc.so.2
+
 ADD ./ /sinatra-sequel
 ADD ./ /sinatra-sequel
 WORKDIR /sinatra-sequel
 WORKDIR /sinatra-sequel
 
 

+ 5 - 0
frameworks/Ruby/sinatra-sequel/sinatra-sequel-passenger-mri.dockerfile

@@ -2,6 +2,11 @@ FROM ruby:3.3
 
 
 ENV RUBY_YJIT_ENABLE=1
 ENV RUBY_YJIT_ENABLE=1
 
 
+# Use Jemalloc
+RUN apt-get update && \
+    apt-get install -y --no-install-recommends libjemalloc2
+ENV LD_PRELOAD=libjemalloc.so.2
+
 ADD ./ /sinatra-sequel
 ADD ./ /sinatra-sequel
 WORKDIR /sinatra-sequel
 WORKDIR /sinatra-sequel
 
 

+ 5 - 0
frameworks/Ruby/sinatra-sequel/sinatra-sequel-postgres-passenger-mri.dockerfile

@@ -2,6 +2,11 @@ FROM ruby:3.3
 
 
 ENV RUBY_YJIT_ENABLE=1
 ENV RUBY_YJIT_ENABLE=1
 
 
+# Use Jemalloc
+RUN apt-get update && \
+    apt-get install -y --no-install-recommends libjemalloc2
+ENV LD_PRELOAD=libjemalloc.so.2
+
 ADD ./ /sinatra-sequel
 ADD ./ /sinatra-sequel
 WORKDIR /sinatra-sequel
 WORKDIR /sinatra-sequel
 
 

+ 5 - 0
frameworks/Ruby/sinatra-sequel/sinatra-sequel-postgres-unicorn-mri.dockerfile

@@ -2,6 +2,11 @@ FROM ruby:3.4-rc
 
 
 ENV RUBY_YJIT_ENABLE=1
 ENV RUBY_YJIT_ENABLE=1
 
 
+# Use Jemalloc
+RUN apt-get update && \
+    apt-get install -y --no-install-recommends libjemalloc2
+ENV LD_PRELOAD=libjemalloc.so.2
+
 ADD ./ /sinatra-sequel
 ADD ./ /sinatra-sequel
 WORKDIR /sinatra-sequel
 WORKDIR /sinatra-sequel
 
 

+ 5 - 0
frameworks/Ruby/sinatra-sequel/sinatra-sequel-postgres.dockerfile

@@ -2,6 +2,11 @@ FROM ruby:3.3
 
 
 ENV RUBY_YJIT_ENABLE=1
 ENV RUBY_YJIT_ENABLE=1
 
 
+# Use Jemalloc
+RUN apt-get update && \
+    apt-get install -y --no-install-recommends libjemalloc2
+ENV LD_PRELOAD=libjemalloc.so.2
+
 ADD ./ /sinatra-sequel
 ADD ./ /sinatra-sequel
 WORKDIR /sinatra-sequel
 WORKDIR /sinatra-sequel
 
 

+ 5 - 0
frameworks/Ruby/sinatra-sequel/sinatra-sequel-unicorn-mri.dockerfile

@@ -2,6 +2,11 @@ FROM ruby:3.4-rc
 
 
 ENV RUBY_YJIT_ENABLE=1
 ENV RUBY_YJIT_ENABLE=1
 
 
+# Use Jemalloc
+RUN apt-get update && \
+    apt-get install -y --no-install-recommends libjemalloc2
+ENV LD_PRELOAD=libjemalloc.so.2
+
 ADD ./ /sinatra-sequel
 ADD ./ /sinatra-sequel
 WORKDIR /sinatra-sequel
 WORKDIR /sinatra-sequel
 
 

+ 5 - 0
frameworks/Ruby/sinatra-sequel/sinatra-sequel.dockerfile

@@ -2,6 +2,11 @@ FROM ruby:3.4-rc
 
 
 ENV RUBY_YJIT_ENABLE=1
 ENV RUBY_YJIT_ENABLE=1
 
 
+# Use Jemalloc
+RUN apt-get update && \
+    apt-get install -y --no-install-recommends libjemalloc2
+ENV LD_PRELOAD=libjemalloc.so.2
+
 ADD ./ /sinatra-sequel
 ADD ./ /sinatra-sequel
 WORKDIR /sinatra-sequel
 WORKDIR /sinatra-sequel
 
 

+ 1 - 1
frameworks/Ruby/sinatra/sinatra-passenger-mri.dockerfile

@@ -5,7 +5,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 ADD ./ /sinatra
 ADD ./ /sinatra
 WORKDIR /sinatra
 WORKDIR /sinatra

+ 1 - 1
frameworks/Ruby/sinatra/sinatra-postgres-passenger-mri.dockerfile

@@ -5,7 +5,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 ADD ./ /sinatra
 ADD ./ /sinatra
 WORKDIR /sinatra
 WORKDIR /sinatra

+ 1 - 1
frameworks/Ruby/sinatra/sinatra-postgres-unicorn-mri.dockerfile

@@ -5,7 +5,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 ADD ./ /sinatra
 ADD ./ /sinatra
 WORKDIR /sinatra
 WORKDIR /sinatra

+ 1 - 1
frameworks/Ruby/sinatra/sinatra-postgres.dockerfile

@@ -5,7 +5,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 ADD ./ /sinatra
 ADD ./ /sinatra
 WORKDIR /sinatra
 WORKDIR /sinatra

+ 1 - 1
frameworks/Ruby/sinatra/sinatra-unicorn-mri.dockerfile

@@ -5,7 +5,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 ADD ./ /sinatra
 ADD ./ /sinatra
 WORKDIR /sinatra
 WORKDIR /sinatra

+ 1 - 1
frameworks/Ruby/sinatra/sinatra.dockerfile

@@ -5,7 +5,7 @@ ENV RUBY_YJIT_ENABLE=1
 # Use Jemalloc
 # Use Jemalloc
 RUN apt-get update && \
 RUN apt-get update && \
     apt-get install -y --no-install-recommends libjemalloc2
     apt-get install -y --no-install-recommends libjemalloc2
-ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
+ENV LD_PRELOAD=libjemalloc.so.2
 
 
 ADD ./ /sinatra
 ADD ./ /sinatra
 WORKDIR /sinatra
 WORKDIR /sinatra