mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
No need to have arm64 and amd64 for php extensions
This commit is contained in:
15
debian/Dockerfile
vendored
15
debian/Dockerfile
vendored
@@ -36,21 +36,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install Required PHP extensions.
|
# Install PHP extensions
|
||||||
RUN if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
|
RUN ( curl -sSLf https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - || echo 'return 1' ) | sh -s \
|
||||||
( curl -sSLf https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - || echo 'return 1' ) | sh -s \
|
|
||||||
${php_require} \
|
|
||||||
${php_suggest} \
|
|
||||||
${php_suggest_debian} \
|
|
||||||
${php_extra} \
|
|
||||||
@composer; \
|
|
||||||
elif [ "$(dpkg --print-architecture)" = "arm64" ]; then \
|
|
||||||
( curl -sSLf https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - || echo 'return 1' ) | sh -s \
|
|
||||||
${php_require} \
|
${php_require} \
|
||||||
${php_suggest} \
|
${php_suggest} \
|
||||||
${php_extra} \
|
${php_extra} \
|
||||||
@composer; \
|
@composer
|
||||||
fi
|
|
||||||
|
|
||||||
# Configure PHP
|
# Configure PHP
|
||||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||||
|
|||||||
Reference in New Issue
Block a user