Skip to content

Commit ff330b9

Browse files
committed
add 18.04-minimum docker image
1 parent 204198b commit ff330b9

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

phpbrew/18.04-default/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ENV PHPBREW_SET_PROMPT 1
4444
RUN phpbrew init \
4545
&& echo 'source $HOME/.phpbrew/bashrc' >> /root/.bashrc \
4646
&& source ~/.phpbrew/bashrc \
47-
&& phpbrew --debug install $PHP_VERSION as $PHP_VERSION \
47+
&& phpbrew --debug install --stdout $PHP_VERSION as $PHP_VERSION \
4848
+default +bcmath +bz2 +calendar +cli +ctype +dom +fileinfo +filter +json \
4949
+mbregex +mbstring +mhash +pcntl +pcre +phar +posix +readline +sockets \
5050
+tokenizer +xml +curl +zip +openssl=yes +fpm \

phpbrew/18.04-minimum/Dockerfile

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
ARG PHPBREW_BASE_IMAGE
2+
FROM ${PHPBREW_BASE_IMAGE}
3+
4+
# install extension build dependencies for php
5+
RUN apt-get install -y --no-install-recommends \
6+
# pcre extension
7+
libpcre3-dev \
8+
# for compression
9+
libbz2-dev \
10+
# zip extension
11+
libzip4 libzip-dev \
12+
# readline extension
13+
libreadline7 libreadline-dev \
14+
libedit-dev libedit2 \
15+
# xml related dependencies
16+
libxml2 libxml2-dev \
17+
libxslt1-dev libxslt1.1 \
18+
# openssl dependencies
19+
libssl-dev openssl \
20+
# curl extension dependencies
21+
libcurl4 libcurl4-openssl-dev
22+
23+
SHELL ["/bin/bash", "-c"]
24+
ARG PHP_VERSION=7.2
25+
ARG PHP_DIST_NAME=$PHP_VERSION
26+
ARG PHP_MIRROR=http://tw2.php.net
27+
ARG DOWNLOADER=wget
28+
29+
ENV PHPBREW_ROOT /root/.phpbrew
30+
ENV PHPBREW_HOME /root/.phpbrew
31+
ENV PHPBREW_SET_PROMPT 1
32+
RUN phpbrew init \
33+
&& echo 'source $HOME/.phpbrew/bashrc' >> /root/.bashrc \
34+
&& source ~/.phpbrew/bashrc \
35+
&& phpbrew download --mirror $PHP_MIRROR --downloader $DOWNLOADER $PHP_VERSION
36+
37+
RUN source ~/.phpbrew/bashrc \
38+
&& phpbrew --debug install --mirror $$PHP_MIRROR --downloader $DOWNLOADER --stdout \
39+
$PHP_VERSION as $PHP_DIST_NAME \
40+
+cli +phar +bz2 +xml +filter +mbregex +mbstring +posix +pcntl \
41+
&& phpbrew use $PHP_DIST_NAME \
42+
&& php -v
43+

0 commit comments

Comments
 (0)