build_docker.sh 215 Bytes
Newer Older
Carine Rey's avatar
Carine Rey committed
1 2 3 4 5 6
#! /bin/bash

set -e

IMAGE_NAME=bppsuite
DOCKERFILE_DIR=.
Carine Rey's avatar
Carine Rey committed
7
TAG=09042018
Carine Rey's avatar
Carine Rey committed
8 9 10 11 12 13 14
REPO=carinerey/$IMAGE_NAME:$TAG
docker build -t $REPO -f ./Dockerfile $DOCKERFILE_DIR

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