File tree Expand file tree Collapse file tree 2 files changed +30
-29
lines changed Expand file tree Collapse file tree 2 files changed +30
-29
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 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}
30
3
31
4
# install extension build dependencies for php
32
5
RUN apt-get install -y --no-install-recommends \
You can’t perform that action at this time.
0 commit comments