Skip to content
This repository was archived by the owner on Feb 4, 2024. It is now read-only.

Commit f226e52

Browse files
committed
Add php 7.1 version
1 parent 10d5b96 commit f226e52

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.idea

7.1/alpine/Dockerfile

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
FROM php:7.1-cli-alpine
2+
3+
RUN apk update && apk upgrade \
4+
&& set -xe \
5+
&& apk add --no-cache --virtual .build-deps \
6+
icu-dev \
7+
zlib-dev \
8+
git \
9+
icu-libs \
10+
g++ \
11+
make \
12+
autoconf \
13+
libxslt-dev \
14+
zlib \
15+
wget \
16+
curl \
17+
libtool \
18+
libcurl \
19+
openssl-dev \
20+
libmcrypt-dev \
21+
freetype-dev \
22+
libjpeg-turbo-dev \
23+
libpng-dev \
24+
&& apk add --no-cache icu libmcrypt \
25+
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ \
26+
--with-png-dir=/usr/include/ \
27+
--with-jpeg-dir=/usr/include/ \
28+
&& docker-php-ext-install gd \
29+
mcrypt \
30+
intl \
31+
zip \
32+
pdo_mysql \
33+
opcache \
34+
iconv \
35+
&& pecl install xdebug redis \
36+
&& docker-php-ext-enable xdebug \
37+
&& apk del --purge .build-deps \
38+
&& rm -rf /tmp/pear ~/.pearrc /var/tmp/* /tmp/*
39+
40+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
41+
&& composer global require hirak/prestissimo --prefer-dist --no-interaction \
42+
&& rm -rf /root/.composer/cache/*
43+
44+
WORKDIR /app

0 commit comments

Comments
 (0)