Multi-stage build for a Java App Build the Docker image docker build -t s2i . Run the Docker image docker run -t --rm s2i