erplibre/script/build_docker.sh

13 lines
315 B
Bash
Executable file

#!/usr/bin/env bash
cd docker
ARGS=--build-arg=WORKING_BRANCH=$(git rev-parse --abbrev-ref HEAD)
set -e
# Build base
docker build ${ARGS} -f Dockerfile.base -t technolibre/erplibre-base:12.0 .
# Build prod
docker build ${ARGS} -f Dockerfile.prod.pkg -t technolibre/erplibre:12.0-pkg .
cd ..
docker-compose up -d