Skip to content

Commit 2bfbd4c

Browse files
committedJul 5, 2016
clean up after compiling
1 parent efdfe77 commit 2bfbd4c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed
 

‎jaytaph-php7-extension/Dockerfile

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
FROM php:7-alpine
22
MAINTAINER robin@kingsquare.nl
33

4-
# build it and they will com.. pile
5-
RUN apk add --no-cache autoconf g++ make
6-
74
# Create working dir
85
RUN mkdir -p /var/app
96
COPY . /var/app
107
WORKDIR /var/app
118

12-
# compile it and they will raffle
13-
RUN phpize && \
9+
RUN \
10+
apk add --no-cache autoconf g++ make &&\
11+
# build it and they will com.. pile
12+
phpize && \
1413
./configure && \
14+
# compile it and they will raffle
1515
make && \
1616
make install && \
17-
echo "extension=domcode.so" >> /usr/local/etc/php/conf.d/domcode.ini
17+
echo "extension=domcode.so" >> /usr/local/etc/php/conf.d/domcode.ini && \
18+
# radio gaga...
19+
apk del autoconf g++ make
1820

1921
CMD ["php", "test.php", "/var/names/current"]
2022

0 commit comments

Comments
 (0)