Added node + yarn, tidy php extension (7.3+)

This commit is contained in:
2020-12-08 00:09:14 -06:00
parent 39a3503e5d
commit 8f76338ffe
3 changed files with 94 additions and 23 deletions
+11 -8
View File
@@ -1,12 +1,12 @@
# maintainer information.
FROM webdevops/php-nginx:7.3-alpine
MAINTAINER Belman Kraul <bkraul@belmankraul.com>
LABEL maintainer="Belman Kraul <bkraul@belmankraul.com>"
# install php modules and drivers.
ENV MSSQL_DRIVER_VERSION=6.1.1-1
RUN set -x \
RUN \
# install the build pre-requisites.
&& apk add --no-cache --virtual .build-deps autoconf file g++ make pkgconf re2c php7-dev unixodbc-dev libmcrypt-dev \
apk add --no-cache --virtual .build-deps autoconf file g++ make pkgconf re2c php7-dev unixodbc-dev \
# install mssql drivers
&& curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.${MSSQL_DRIVER_VERSION}_amd64.apk \
&& curl -O https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/mssql-tools_17.${MSSQL_DRIVER_VERSION}_amd64.apk \
@@ -17,12 +17,15 @@ RUN set -x \
&& echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc \
&& /bin/bash -c "source ~/.bashrc" \
# install the pecl extensions.
# for php-tidy we must leave behind the tidyhtml-dev libraries
# as tidy.so requires dev libraries such as libtidy.so.5.
&& apk add tidyhtml-dev \
&& docker-php-ext-install tidy \
&& pecl install pdo_sqlsrv \
&& pecl install sqlsrv \
&& pecl install igbinary \
&& pecl install msgpack \
# enable the extensions.
#&& echo extension=mcrypt.so > /etc/php7/conf.d/20-mcrypt.ini \
&& echo extension=pdo_sqlsrv.so > `php --ini | grep "Scan for additional .ini files" | sed -e "s|.*:\s*||"`/30_pdo_sqlsrv.ini \
&& echo extension=sqlsrv.so > `php --ini | grep "Scan for additional .ini files" | sed -e "s|.*:\s*||"`/20_sqlsrv.ini \
&& echo extension=igbinary.so > `php --ini | grep "Scan for additional .ini files" | sed -e "s|.*:\s*||"`/20_igbinary.ini \
@@ -36,8 +39,8 @@ RUN set -x \
# build node.
ENV NODE_VERSION 12.19.0
RUN set -x \
&& apk add --no-cache \
RUN \
apk add --no-cache \
libstdc++ \
&& apk add --no-cache --virtual .build-deps \
curl \
@@ -108,8 +111,8 @@ RUN set -x \
# build yarn
ENV YARN_VERSION 1.22.5
RUN set -x \
&& apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
RUN \
apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
&& for key in \
6A010C5166006599AA17F08146C2130DFD2497F5 \
; do \