8000 GitHub - bentito/docker-mini-webserver: Provides a server (via Express.js) to expose static files from the Docker host via HTTP
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bentito/docker-mini-webserver

 
 

Repository files navigation

mini-webserver

Provides a minimal webserver (via Express.js) to expose static files from the Docker host via HTTP. This image is build on Alpine Linux (base image mhart/alpine-node:0.10.40) and aims for a minimal size.

Usage

You can expose a local directory which you want to have served via the mini-webserver by starting it with

docker run --name mini-web -p 8080:3000 -v /path/to/local/folder:/app/public:ro -d tobilg/mini-webserver

In this example, the port on the docker host where the mini-webserver is reachable is 8080.

Logging

The Express.js app uses morgan to pipe the web logs to the STDOUT. This means that the logs are visible via docker logs mini-web (if the container name is mini-web).

About

Provides a server (via Express.js) to expose static files from the Docker host via HTTP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 94.5%
  • JavaScript 3.3%
  • Dockerfile 2.2%
0