Simple implementation using Java and Spring Boot
./gradlew build
./gradlew dockerBuild
Should only be executed after image was already built. The container will be started with --rm
mode
so it will de automatically deleted when docker stop
is called on it.
Name of the container will be poker
and port 8080
will be used.
./gradlew dockerRun
To stop the container:
./gradlew dockerStop