Skip to content

dockersamples/genie-website-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 98.1%
  • Java 1.6%
  • Dockerfile 0.3%