[discourse-web] Install jemalloc
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [discourse-web] Install jemalloc
- Date: Fri, 18 Sep 2020 09:24:06 +0000 (UTC)
commit 10c3dea3a7325ad33f7fc09a365d76f13566ab17
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Fri Sep 18 11:24:00 2020 +0200
Install jemalloc
Dockerfile | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index a620813..207ba14 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,16 +1,19 @@
-FROM ruby:2.6.5
+FROM ruby:2.6.6
LABEL maintainer="GNOME Sysadmins <gnome-sysadmin gnome org>"
+ENV RUBY_ALLOCATOR /usr/lib/libjemalloc.so.1
+ENV RAILS_ENV production
+
### Install prerequisites #############################
-RUN apt update && \
- apt install -y wget lsb-release && \
+RUN apt-get update && \
+ apt-get install -y wget lsb-release && \
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" >
/etc/apt/sources.list.d/pgdg.list && \
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list && \
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
apt-get update && apt-get -y upgrade && \
- apt-get -y install build-essential gettext \
+ apt-get -y install build-essential gettext libjemalloc2 \
# Install postgres
postgresql-client-12 \
# Install image utilities
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]