Skip to content

Commit

Permalink
Use base ruby 2.6 image (bullseye). Use jmalloc2. (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
zwolf authored Sep 5, 2023
1 parent e53d982 commit 79f125f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM ruby:2.6-stretch
FROM ruby:2.6
WORKDIR /app
ENV PORT=80
ARG RAILS_ENV

RUN apt-get update && \
apt-get install --no-install-recommends -y git curl libpq-dev libjemalloc1 && \
apt-get install --no-install-recommends -y git curl libpq-dev libjemalloc2 && \
apt-get clean && rm -rf /var/lib/apt/lists/*

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

ADD ./Gemfile /app/
ADD ./Gemfile.lock /app/
Expand Down

0 comments on commit 79f125f

Please sign in to comment.