banker/build/docker_install.sh

23 lines
639 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
apk upgrade --update && apk add --no-cache \
g++ \
make \
automake \
curl \
2017-03-01 10:17:04 -05:00
git \
libmemcached
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