How to Build the First containerized java web application
Prerequisite
- JDK 17 or above
- Spring Tool Suite for Eclipse
- Docker Desktop
Getting Started
Step 1. Clone the repository
git clone https://github.com/dockersamples/genie-website-java
Step 2. Building the JAR file
Use the Spring Tool Suite to build the JAR file
Step 3. Building docker image
I assume that you have already followed step 2 to build webapp-0.0.1-SNAPSHOT.jar file under the target directory.
docker build -t docker_desktop_page .
Step 4. Running the docker container
docker run -p 8080:8080 docker_desktop_page


