Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 435 Bytes

building.md

File metadata and controls

15 lines (11 loc) · 435 Bytes

Building

Building a Docker Image

# build custom maven image
docker build --pull -t jpmc/cakeshop-build docker/build/

# build cakeshop.war
docker run --rm -v ~/.m2:/home/cakeshop/.m2 -v $(pwd):/usr/src -w /usr/src jpmc/cakeshop-build mvn -DskipTests clean package

# build cakeshop image using war from previous step
mv cakeshop-api/target/cakeshop*.war docker/cakeshop/
docker build --pull -t cakeshop docker/cakeshop/