Skip to content

Commit

Permalink
Use the correct Dockerfile in the build hook
Browse files Browse the repository at this point in the history
  • Loading branch information
brianz committed Sep 1, 2017
1 parent 3dfcb53 commit 7e28802
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion hooks/build
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#!/bin/bash
DOCKERFILE=Dockerfile

echo "Building $CACHE_TAG using build hook!"

if [[ $CACHE_TAG == *"python3"* ]]; then
DOCKERFILE=Dockerfile-python3
fi

echo "Using $DOCKERFILE for build"

docker build \
--build-arg SERVERLESS_VERSION=1.21.0 \
--build-arg SERVERLESS_VERSION=1.20.0 \
-f $DOCKERFILE \
-t $IMAGE_NAME .

0 comments on commit 7e28802

Please sign in to comment.