practice jomacs devops web-app
55
Dockerfile: Contains instructions to build a Docker image for the web application.app/: Directory containing the source code and necessary files for the web application.
src/: Source code files for the web application.pom.xml: Maven project configuration fileThe Dockerfile defines the steps to build a Docker image for the web application
To pull the Docker image from Docker Hub, use the following command:
docker pull michaelkedey/web-app:michaelkedey
Run the Docker Container:
docker run -d --name web-app -p 8080:8080 web-app
Access the Application:
Open a web browser and navigate to http://localhost:8080/web-app to access the running web application.
Clone the Repository:
git clone https://github.com/michaelkedey/web-app.git
cd web-app
Build the Docker Image:
docker build -t web-app .
Run the Docker Container:
docker run -d --name web-app -p 8080:8080 web-app
Access the Application:
Open a web browser and navigate to http://localhost:8080/web-app to access the running web application.
Content type
Image
Digest
sha256:2a09c3648…
Size
199.8 MB
Last updated
over 2 years ago
docker pull michaelkedey/web-app:michaelkedey