01. Create a Dockerfile inside your portfolio web site project folder.
that file name must be Dockerfile
02. Use the Base image as HTTPD
create the "Dockerfile" like below.
03. After create Dockerfile you can run below command to build the docker image
docker build -t imageName .
04. After create docker image you can use to create docker container using below command.
docker run -d --name containerName -p 8080:80 imageName
You can access the website using http://localhost:8080
Top comments (0)