Skip to content

An minimal docker image (about 10MB), only contains mini_httpd (CGI enabled), curl and bash.

Notifications You must be signed in to change notification settings

dseg/docker-mini_httpd-cgi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

An Alpine Linux based tiny docker image, is intended to be used as minimal (old style) CGI server.

This is useful for simple CGI scripts and CGI applications such as doing web scraping, requesing to some Web APIs, etc.

This image is based on Alpine Linux 3.3 and contains following packages. Image size is only 10 MB.

Build

$ sudo docker build .

Usage

# Run 
$ sudo docker run --rm -t -v /var/www/html:/var/www/localhost/htdocs
-p 80:80 dseg/mini_httpd-cgi

Copy a sample cgi script to the document root dir.

cd /var/www/html
curl
'https://aur.archlinux.org/cgit/aur.git/plain/sample.cgi?h=mini_httpd' -o sample.cgi
chmod 755 sample.cgi

# test
./sample.cgi

Then access to the http://server/index.html, http://server/sample.cgi using browser.

About

An minimal docker image (about 10MB), only contains mini_httpd (CGI enabled), curl and bash.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published