Sign inSign up

varunmanik/httpd

By varunmanik

•Updated over 3 years ago

Image
1

847

varunmanik/httpd repository overview

⁠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

Tag summary

Content type

Image

Digest

sha256:68b75d5ce…

Size

54.5 MB

Last updated

over 3 years ago

docker pull varunmanik/httpd:signed