2017-03-21 15:53:12 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# We've placed the Dockerfile under docker/ so that the generically named
|
|
|
|
# hooks/ directory doesn't pollute the main directory. Because we need to
|
|
|
|
# COPY the source into the container, we need to use some -f gymnastics to
|
|
|
|
# ensure that "COPY . /src" is referring to the repo root, not the directory
|
|
|
|
# that contains the Dockerfile.
|
|
|
|
# This script gets executed with a pwd of wherever the Dockerfile is.
|
2024-06-19 08:15:23 -04:00
|
|
|
|
|
|
|
DOCKER_BUILD="docker build --build-arg BUILD_CONCURRENCY=${CONCURRENCY} --build-arg DOCKER_TAG=${DOCKER_TAG:?unset} -t ${IMAGE_NAME:?unset} -f"
|
|
|
|
|
|
|
|
$DOCKER_BUILD Dockerfile ..
|
|
|
|
$DOCKER_BUILD Dockerfile-alpine ..
|