Skip to content

manikcloud/docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Image for Custom HTTPD Server

This Docker image is based on the varunmanik/httpd:cicd image and serves a custom index.html file.

Dockerfile

The Dockerfile is as follows:

FROM varunmanik/httpd:cicd
LABEL maintainer="Varun Manik"

COPY ./index.html /usr/local/apache2/htdocs/

EXPOSE 80

Usage

  1. Build the Docker image:

    docker build -t my-custom-httpd .
    
  2. Run the Docker container:

    docker run -d -p 80:80 --name my-httpd my-custom-httpd
    
  3. Access the custom HTTPD server:

    Open your browser and visit http://localhost.

Stopping the Container

To stop the running container, execute the following command:

docker stop my-httpd 

Removing the Container

To remove the stopped container, execute the following command:

docker rm my-httpd

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published