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