Commit 69ebb68b authored by Emanuel Jacob's avatar Emanuel Jacob

Change installation of sodium (in order to update version)

parent c18e59f3
Pipeline #20990 passed with stage
in 7 minutes and 33 seconds
...@@ -7,6 +7,9 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer ...@@ -7,6 +7,9 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# pool configuration # pool configuration
COPY shared/zz-www.conf /usr/local/etc/php-fpm.d/ COPY shared/zz-www.conf /usr/local/etc/php-fpm.d/
# Add backports to sources.list
RUN echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list
# Install packages with clean up # Install packages with clean up
RUN set -ex; \ RUN set -ex; \
build_dependencies="autoconf dpkg-dev file g++ gcc make pkgconf re2c libcurl4-nss-dev \ build_dependencies="autoconf dpkg-dev file g++ gcc make pkgconf re2c libcurl4-nss-dev \
...@@ -14,15 +17,15 @@ RUN set -ex; \ ...@@ -14,15 +17,15 @@ RUN set -ex; \
libxslt1-dev libfreetype6-dev libmagickwand-dev"; \ libxslt1-dev libfreetype6-dev libmagickwand-dev"; \
install_packages="acl gifsicle git ssmtp imagemagick graphicsmagick gsfonts jpegoptim libjpeg-turbo-progs \ install_packages="acl gifsicle git ssmtp imagemagick graphicsmagick gsfonts jpegoptim libjpeg-turbo-progs \
libpq5 libxml2 libxslt1.1 libzip-dev mariadb-client nano pkg-config procps openssl openssh-client \ libpq5 libxml2 libxslt1.1 libzip-dev mariadb-client nano pkg-config procps openssl openssh-client \
optipng rsync sudo unzip vim webp zip libsodium-dev"; \ optipng rsync sudo unzip vim webp zip"; \
apt-get update; \ apt-get update; \
apt-get install -y --no-install-recommends ${build_dependencies}; \ apt-get install -y --no-install-recommends ${build_dependencies}; \
apt-get install -y ${install_packages}; \ apt-get install -y ${install_packages}; \
pecl install xdebug redis imagick mongodb sodium; \ apt-get -t stretch-backports install -y libsodium-dev; \
pecl install xdebug redis imagick mongodb; \
docker-php-ext-enable imagick; \ docker-php-ext-enable imagick; \
docker-php-ext-enable redis; \ docker-php-ext-enable redis; \
docker-php-ext-enable mongodb; \ docker-php-ext-enable mongodb; \
docker-php-ext-enable sodium; \
docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr --with-freetype-dir=/usr/; \ docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr --with-freetype-dir=/usr/; \
docker-php-ext-install -j "$(nproc)" \ docker-php-ext-install -j "$(nproc)" \
bcmath \ bcmath \
...@@ -40,6 +43,7 @@ RUN set -ex; \ ...@@ -40,6 +43,7 @@ RUN set -ex; \
intl \ intl \
xsl \ xsl \
zip \ zip \
sodium \
; \ ; \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false ${build_dependencies}; \ apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false ${build_dependencies}; \
rm -rf /var/lib/apt/lists/*; \ rm -rf /var/lib/apt/lists/*; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment