build_docker.sh 211 Bytes
Newer Older
Carine Rey's avatar
Carine Rey committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#! /bin/bash

set -e

IMAGE_NAME=pcoc
DOCKERFILE_DIR=.
TAG=06212018
REPO=carinerey/$IMAGE_NAME:$TAG
docker build -t $REPO -f ./Dockerfile $DOCKERFILE_DIR

if [[ $1 == "push_yes" ]]
then
    docker push $REPO
fi