Sign inSign up

muhammadfajritif/serv

By muhammadfajritif

•Updated almost 2 years ago

Simple HTTP Server is written in C. Utilize fork and semaphore to handle multi-client connections.

Image
Networking
Web servers
Operating systems
0

10K+

muhammadfajritif/serv repository overview

⁠Quick Reference


⁠Overview

Serv is a simple HTTP server written in C.

The image is built based on the Alpine Linux image.


⁠How to Use

⁠Pull the Image

To use this image, pull it from Docker Hub:

docker pull muhammadfajritif/serv:<tag>

Example:

docker pull muhammadfajritif/serv:latest
⁠Run the Image

Run the image using the following command:

docker run -p 8080:8080 muhammadfajritif/serv

⁠Configuration

⁠Custom Port

To run Serv with different ports by specifying the PORT_NUMBER environment variable.

Example:

docker run -e PORT_NUMBER=6969 -p 6969:6969 my-c-project

Tag summary

Content type

Image

Digest

sha256:4890d53f5…

Size

3.6 MB

Last updated

almost 2 years ago

docker pull muhammadfajritif/serv