Skip to content

Latest commit

 

History

History
44 lines (24 loc) · 1.02 KB

README.md

File metadata and controls

44 lines (24 loc) · 1.02 KB

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

image

image

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

Screenshot 2022-08-10 at 11 41 18 PM