Docker For Java Developer - Deploying Spring Based WAR Application to Docker

Create the dockerfile. Docker file is a list of commands that we want the docker engine to execute. We will be needing a tomcat image using which we will be deploying our application. Go to dockerhub and search tomcat, we will be using official tomcat images. Here since we are using jdk 8 so we select alpine 8.
docker container run -d employee-producer
docker container run -p 8080:8080 -d employee-producer

Пікірлер: 1

  • @Hanan-ed1zh
    @Hanan-ed1zhАй бұрын

    Thank you!