Update Dockerfile.prod

This commit is contained in:
Eugene Burmakin 2025-05-19 19:02:29 +02:00
parent 34c82e82a5
commit 1b0de3e3af

View file

@ -8,24 +8,22 @@ ENV RAILS_PORT=3000
ENV RAILS_ENV=production ENV RAILS_ENV=production
ENV SELF_HOSTED=true ENV SELF_HOSTED=true
# Install dependencies for application RUN apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
RUN apk -U add --no-cache \ build-essential \
build-base \
git \ git \
postgresql-dev \ libpq-dev \
postgresql-client \
libxml2-dev \ libxml2-dev \
libxslt-dev \ libxslt-dev \
nodejs \ libyaml-dev \
yarn \ libgeos-dev libgeos++-dev \
imagemagick \ imagemagick \
tzdata \ tzdata \
nodejs \
yarn \
less \ less \
yaml-dev \ libjemalloc2 libjemalloc-dev \
gcompat \ && mkdir -p $APP_PATH \
geos \ && rm -rf /var/lib/apt/lists/*
jemalloc \
&& mkdir -p $APP_PATH
# Use jemalloc # Use jemalloc
ENV LD_PRELOAD=/usr/lib/libjemalloc.so.2 ENV LD_PRELOAD=/usr/lib/libjemalloc.so.2