arg for specific bench version

This commit is contained in:
KevinFaro 2026-02-26 13:48:24 +02:00
parent 85aaca4bd5
commit 81ba1fa5e4
No known key found for this signature in database

View file

@ -8,6 +8,7 @@ COPY resources/core/nginx/nginx-entrypoint.sh /usr/local/bin/nginx-entrypoint.sh
ARG WKHTMLTOPDF_VERSION=0.12.6.1-3
ARG WKHTMLTOPDF_DISTRO=bookworm
ARG NODE_VERSION=24.13.0
ARG BENCH_VERSION=5.27.0
ENV NVM_DIR=/home/frappe/.nvm
ENV PATH=${NVM_DIR}/versions/node/v${NODE_VERSION}/bin/:${PATH}
@ -63,7 +64,7 @@ RUN useradd -ms /bin/bash frappe \
# Clean up
&& rm -rf /var/lib/apt/lists/* \
&& rm -fr /etc/nginx/sites-enabled/default \
&& pip3 install frappe-bench \
&& pip3 install frappe-bench==${BENCH_VERSION} \
# Fixes for non-root nginx and logs to stdout
&& sed -i '/user www-data/d' /etc/nginx/nginx.conf \
&& ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log \