banker/build/docker_install.sh

13 lines
441 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
curl \
2017-03-01 10:53:10 -05:00
git