Add jq to Docker image and improve UNIT_SOURCE handling

- Include jq in the Docker image for JSON processing.
- Refactor UNIT_SOURCE logic to cleanly update configuration using jq.
- Remove obsolete UNIT_SOURCE handling code.
This commit is contained in:
2025-08-23 01:59:57 +05:00
parent c33fcd1d7c
commit 94db6aa51d
6 changed files with 34 additions and 16 deletions

View File

@@ -19,7 +19,7 @@ COPY --from=unit_builder /var/lib/unit/ /var/lib/unit/
COPY docker/unit-config.json /docker-entrypoint.d/config.json
RUN apk --no-cache add pcre2 libbz2 libpng libwebp libjpeg-turbo icu-libs freetype oniguruma libzip \
RUN apk --no-cache add pcre2 libbz2 libpng libwebp libjpeg-turbo icu-libs freetype oniguruma libzip jq \
&& apk add --no-cache --virtual .phpize-deps icu-dev libpng-dev bzip2-dev libwebp-dev libjpeg-turbo-dev freetype-dev oniguruma-dev libzip-dev pcre2-dev ${PHPIZE_DEPS} \
&& docker-php-ext-configure intl --enable-intl && \
docker-php-ext-configure bcmath --enable-bcmath && \