#!/usr/bin/env bash docker run --network=host --rm -v /mnt/data/repository:/home/code/env/maven/repository -v $PWD:/home/code/api \ caiqy/code-build-env:latest -c 'source ~/.bashrc && cd api && mvn clean package -Dmaven.test.skip=true' \ && docker build . -t edu-training-api:3.0.0.RELEASE \ && docker-compose stop api \ && docker-compose rm -f api \ && docker-compose up -d api