Skip to content

Commit 204198b

Browse files
committed
pull out phpbrew-base image
1 parent 5a972f5 commit 204198b

File tree

2 files changed

+30
-29
lines changed

2 files changed

+30
-29
lines changed

phpbrew-base/Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM ubuntu:18.04
2+
3+
LABEL MAINTAINER "Yo-An Lin <[email protected]>"
4+
5+
ENV DEBIAN_FRONTEND "noninteractive"
6+
7+
ENV TZ "Asia/Taipei"
8+
9+
RUN apt-get update
10+
11+
RUN apt-get install -y --no-install-recommends \
12+
# phpbrew used tools
13+
curl wget git ca-certificates \
14+
# phpbrew runtime
15+
php7.2-cli php7.2-phar php7.2-json php7.2-readline php7.2-bz2 \
16+
# timezone data
17+
tzdata
18+
19+
# configure timezone
20+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
21+
22+
# install phpbrew binary
23+
RUN wget -q -O /usr/bin/phpbrew https://raw.githubusercontent.com/phpbrew/phpbrew/master/phpbrew \
24+
&& chmod +x /usr/bin/phpbrew
25+
26+
# install base build dependencies for php
27+
RUN apt-get install -y --no-install-recommends \
28+
build-essential bison autoconf automake autotools-dev re2c

phpbrew/18.04-default/Dockerfile

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,5 @@
1-
FROM ubuntu:18.04
2-
3-
LABEL MAINTAINER "Yo-An Lin <[email protected]>"
4-
5-
ENV DEBIAN_FRONTEND "noninteractive"
6-
7-
ENV TZ "Asia/Taipei"
8-
9-
RUN apt-get update
10-
11-
RUN apt-get install -y --no-install-recommends \
12-
# phpbrew used tools
13-
curl wget git ca-certificates \
14-
# phpbrew runtime
15-
php7.2-cli php7.2-phar php7.2-json php7.2-readline php7.2-bz2 \
16-
# timezone data
17-
tzdata
18-
19-
# configure timezone
20-
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
21-
22-
# install phpbrew binary
23-
RUN wget -q -O /usr/bin/phpbrew https://raw.githubusercontent.com/phpbrew/phpbrew/master/phpbrew \
24-
&& chmod +x /usr/bin/phpbrew
25-
26-
# install base build dependencies for php
27-
RUN apt-get install -y --no-install-recommends \
28-
build-essential bison autoconf automake autotools-dev re2c
29-
1+
ARG PHPBREW_BASE_IMAGE
2+
FROM ${PHPBREW_BASE_IMAGE}
303

314
# install extension build dependencies for php
325
RUN apt-get install -y --no-install-recommends \

0 commit comments

Comments
 (0)