./gradlew bootRepackage -Pprod buildDocker
bootRepackage
: Builds an executable archive (WAR) file for the application-Pprod
: Specifies the profile to usebuildDocker
: Builds a docker image based on the Dockerfile present in thesrc/main/dockerfolder
docker-compose -f src/main/docker/app.yml up
This will also start the MySQL DB if you haven't started it already.
If you already have it running from the previous step, then docker-compose
will just skip it.