Build repo is https://github.com/bskaggs/httpd-go-docker
To build, run sudo ./build.sh. This uses the offical golang container to build the static executable, and then package it as a docker.
To run the container to serve the current directory on port 80, run:
sudo docker run -v $PWD:/srv/www -p 80:80 bskaggs/httpd
To use port 8080 instead, run:
sudo docker run -v $PWD:/srv/www -p 8080:80 bskaggs/httpd
Content type
Image
Digest
Size
2 MB
Last updated
over 10 years ago
docker pull bskaggs/httpd