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 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Required PHP extensions.
|
||||
RUN if [ "$(dpkg --print-architecture)" = "amd64" ]; 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_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 \
|
||||
# Install PHP extensions
|
||||
RUN ( 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_extra} \
|
||||
@composer; \
|
||||
fi
|
||||
@composer
|
||||
|
||||
# Configure PHP
|
||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||
|
||||
Reference in New Issue
Block a user