banker/build/docker_install.sh

23 lines
632 B
Bash
Raw Normal View History

#!/bin/bash
# We need to install dependencies only for Docker
[[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0
set -xe
# Install git (the php image doesn't have it) which is required by composer
2017-03-01 09:12:02 -05:00
echo -e 'http://dl-cdn.alpinelinux.org/alpine/edge/main\nhttp://dl-cdn.alpinelinux.org/alpine/edge/community\nhttp://dl-cdn.alpinelinux.org/alpine/edge/testing' > /etc/apk/repositories
2017-03-01 10:34:32 -05:00
apk upgrade --update --no-cache \
2017-03-01 09:12:02 -05:00
g++ \
make \
automake \
curl \
2017-03-01 10:17:04 -05:00
git \
2017-03-01 10:34:32 -05:00
libmemcached-dev
2017-03-01 10:17:04 -05:00
docker-php-source extract
2017-03-01 10:21:48 -05:00
pecl install apcu-5.1.8
pecl install memcached-3.0.3
2017-03-01 10:17:04 -05:00
docker-php-ext-enable apcu memcached
docker-php-source delete