PHP 7.3 v2 Specialization (#1110)
* Added support for PHP 7.3 v2 Specialization * Add builder dockerfile for PHP7 * Support mcrypt in PHP 7.3
This commit is contained in:
committed by
Ta-Ching Chen
parent
38b8cfaa0a
commit
f104f0b46b
@@ -1,15 +1,10 @@
|
||||
FROM php:7.1-alpine
|
||||
FROM php:7.3-alpine
|
||||
|
||||
ENV PATH="/root/.composer/vendor/bin:${PATH}" \
|
||||
COMPOSER_ALLOW_SUPERUSER=1
|
||||
|
||||
RUN echo '#!/bin/sh' > /usr/local/bin/apk-install \
|
||||
&& echo 'apk add --update "$@" && rm -rf /var/cache/apk/*' >> /usr/local/bin/apk-install \
|
||||
&& chmod +x /usr/local/bin/apk-install
|
||||
|
||||
RUN echo 'http://dl-4.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories \
|
||||
&& apk update \
|
||||
&& apk-install \
|
||||
&& apk --no-cache add \
|
||||
git \
|
||||
curl \
|
||||
curl-dev \
|
||||
@@ -26,11 +21,14 @@ RUN echo 'http://dl-4.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositor
|
||||
vim \
|
||||
libxml2-dev \
|
||||
freetype-dev \
|
||||
libzip-dev \
|
||||
unzip \
|
||||
libc6-compat \
|
||||
openssl \
|
||||
gcc \
|
||||
autoconf
|
||||
autoconf \
|
||||
make \
|
||||
libc-dev
|
||||
|
||||
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
|
||||
|
||||
@@ -47,7 +45,6 @@ RUN docker-php-ext-install \
|
||||
gettext \
|
||||
intl \
|
||||
json \
|
||||
mcrypt \
|
||||
mysqli \
|
||||
pgsql \
|
||||
pcntl \
|
||||
@@ -60,6 +57,11 @@ RUN docker-php-ext-install \
|
||||
xmlrpc \
|
||||
zip
|
||||
|
||||
RUN pecl install \
|
||||
mcrypt-1.0.2
|
||||
RUN docker-php-ext-enable \
|
||||
mcrypt
|
||||
|
||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||
|
||||
COPY . /app
|
||||
@@ -70,4 +72,4 @@ RUN composer install
|
||||
EXPOSE 8888
|
||||
|
||||
ENTRYPOINT ["php"]
|
||||
CMD ["-S","0.0.0.0:8888","index.php"]
|
||||
CMD ["server.php"]
|
||||
|
||||
Reference in New Issue
Block a user