Configure Dockerfile for integration with Docker Cloud/Dockerhub for (#3850)

automated image creation.
This commit is contained in:
Daniel Patterson
2017-03-21 12:53:12 -07:00
committed by GitHub
parent 810e3c6a66
commit ff238c2724
2 changed files with 15 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/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.
docker build --build-arg DOCKER_TAG=${DOCKER_TAG} -t $IMAGE_NAME -f Dockerfile ..