# Deploy HTML app using Dockerfile- Dockerfile hands-on

## What is docker?

Docker is a software platform that allows you to build, test, and deploy applications quickly. Docker packages software into standardized units called containers that have everything the software needs to run including libraries, system tools, code, and runtime.

## What is a Dockerfile?

A Dockerfile is a text file that contains a set of instructions used to build a Docker image. It serves as a blueprint for Docker to automate the creation of containers. By following the instructions defined in the Dockerfile, Docker can fetch the necessary dependencies, configure the environment, and set up the application inside the container.

![](https://miro.medium.com/v2/resize:fit:875/1*Hd9vf1l6MyKhT4neqbrXeQ.png align="left")

## Steps for deploying app:

**Step:1 Clone Github Repository.**

![](https://miro.medium.com/v2/resize:fit:875/1*T8yIQyLlca5nKS5_EJ_D5g.png align="left")

**Step:2 Make a file named “Dockerfile” and add configurations to it.**

![](https://miro.medium.com/v2/resize:fit:673/1*3diE3yUFSj0Aa3YT3A9I1w.png align="left")

**Step:3 Build the Dockerfile using command,**

```dockerfile
docker build . -t movie-image
```

![](https://miro.medium.com/v2/resize:fit:875/1*ypjpyn-yoAMxiXLSqJ9n4w.png align="left")

**Step:4 Make the Container out of the newly made image by using command,**

```dockerfile
docker run -d --name find-movie -p 8090:8090 movie-image:latest
```

![](https://miro.medium.com/v2/resize:fit:875/1*iS5yHTKmOs2M9QQta-JCvA.png align="left")

**Step:5 Then simply navigate to** [**localhost:8090**](http://localhost:8090) **in your browser.**

![](https://miro.medium.com/v2/resize:fit:875/1*jeJ8pRb24AZ6CvUY6iTLvw.png align="left")

**Happy Learning!!**
