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...
Sur cette page du site, vous pouvez voir la vidéo en ligne Dockerize java web application and push it to dockerhub durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Ingabire Olivier 25 juillet 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 224 fois et il a aimé 7 téléspectateurs. Bon visionnage!