Dockerize java web application and push it to dockerhub

Published: 25 July 2024
on channel: Ingabire Olivier
224
7

This video explains how to dockerize the application and push the image to docker hub(configure docker file)
link to beginner docker commands:    • Docker Crash Course for Absolute Beginners...  

Dockerfile
-----------------
Use an official Tomcat runtime as a parent image
FROM tomcat:9.0-jdk8 # your tomcat-yourjdk

WORKDIR /usr/local/tomcat

RUN rm -rf webapps/*

Copy the WAR file to the webapps directory of Tomcat
COPY build/SecondProject.war webapps/SecondProject.war

Expose port 8080
EXPOSE 8080

Run Tomcat
CMD ["catalina.sh", "run"]

mygithub link:
https://github.com/ingabireol/best_pogramm...


On this page of the site you can watch the video online Dockerize java web application and push it to dockerhub with a duration of hours minute second in good quality, which was uploaded by the user Ingabire Olivier 25 July 2024, share the link with friends and acquaintances, this video has already been watched 224 times on youtube and it was liked by 7 viewers. Enjoy your viewing!