2017-01-22 04:59:18 +04:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
script_dir="$(dirname "$(readlink -f "$0")")"
|
|
|
|
src_dir="$(dirname "$script_dir")"
|
|
|
|
cd "$src_dir"
|
|
|
|
|
|
|
|
. scripts/version.sh
|
|
|
|
image_name="${1:-tezos_build_deps}"
|
|
|
|
image_version="${2:-latest}"
|
|
|
|
|
|
|
|
sed scripts/Dockerfile.build_deps.in \
|
2017-03-14 12:18:35 +04:00
|
|
|
-e 's|$alpine_version|'"$alpine_version"'|g' \
|
|
|
|
-e 's|$ocaml_version|'"$ocaml_version"'|g' > Dockerfile
|
2017-01-22 04:59:18 +04:00
|
|
|
|
|
|
|
docker build --pull -t "$image_name:$image_version" .
|
|
|
|
|
|
|
|
rm Dockerfile
|