Public | Automated Build

Last pushed: 2 years ago
Short Description
A tiny docker container to serve static files.
Full Description

httpserver (docker edition)

A tiny docker container to serve static files via npm's httpserver.

# build
docker build -t httpserver .
# or pull
docker pull erikreed/httpserver

# then run:
docker run -p 80:80 -v ~/Downloads:/www -t -i httpserver

The above nicely serves the ~/Downloads directory on port 80. Flags -t and -i are necessary to capture sigint (ctrl-c) in this case.

Docker Pull Command
Owner
erikreed
Source Repository