Skip to content

Commit

Permalink
Create a builder based on PHP 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbybouwmann authored and eXistenZNL committed Apr 4, 2018
1 parent 696c7bf commit dddae26
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ matrix:
include:
- env: PHP_VERSION=5.6
- env: PHP_VERSION=7.1
- env: PHP_VERSION=7.2

services:
- docker
Expand Down
63 changes: 63 additions & 0 deletions Dockerfile-7.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
FROM alpine:3.7

MAINTAINER [email protected]

ENV LANG='en_US.UTF-8' LANGUAGE='en_US.UTF-8' TERM='xterm' DOCKER_HOST='docker'

ADD https://php.codecasts.rocks/php-alpine.rsa.pub /etc/apk/keys/php-alpine.rsa.pub
RUN apk --update add ca-certificates
RUN echo "@php https://php.codecasts.rocks/v3.7/php-7.2" >> /etc/apk/repositories

RUN apk -U --no-cache add \
alpine-sdk \
autoconf \
automake \
build-base \
curl \
docker \
git \
libjpeg-turbo \
libjpeg-turbo-dev \
libpng \
libpng-dev \
libwebp \
libwebp-dev \
make \
nasm \
nodejs-npm \
openssh \
php7@php \
php7-ctype@php \
php7-curl@php \
php7-dom@php \
php7-fileinfo@php \
php7-gettext@php \
php7-gd@php \
php7-gmp@php \
php7-iconv@php \
php7-json@php \
php7-ldap@php \
php7-mbstring@php \
php7-mcrypt@php \
php7-openssl@php \
php7-pcntl@php \
php7-pdo_mysql@php \
php7-pdo_pgsql@php \
php7-pdo_sqlite@php \
php7-phar@php \
php7-redis@php \
php7-session@php \
php7-simplexml@php \
php7-snmp@php \
php7-tokenizer@php \
php7-xdebug@php \
php7-xml@php \
php7-xmlreader@php \
php7-xmlwriter@php \
php7-zip@php \
php7-zlib@php \
&& ln -s /usr/bin/php7 /usr/bin/php \
&& curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& npm install -g yarn

COPY cache-tool.sh /usr/local/bin/cache-tool
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Variables
PROJECTNAME=existenz/builder
TAGNAME=UNDEF
LATEST_TAG=7.1
LATEST_TAG=7.2

build:
if [ "$(TAGNAME)" = "UNDEF" ]; then echo "please provide a valid TAGNAME" && exit 1; fi
Expand Down

0 comments on commit dddae26

Please sign in to comment.