Sign inSign up

visualjeff/simple-http-server

By visualjeff

•Updated almost 11 years ago

Contains: Ubuntu 14.04 Supervisor

Image
3

1M+

visualjeff/simple-http-server repository overview

Supervisor starts and will also restart the command python -m SimpleHTTPServer 8080 from the WORKDIR /data.

Put any HTML or the site you intend to expose into the mapped directory for /data.

For example:

  1. Put your site in the directory /absolutePath/dist
  2. Start the container using the command below, NOTE: you'll be exposing your site on port 80

sudo docker run -d -p 80:8080 -v /absolutePath/dist:/data visualjeff/simple-http-server:0.0.1

To find out what the IP address do a hostname -I at the command prompt. The second IP listed will be the IP address for the docker container. Now use that docker ip address in the browser to confirm your site is exposed.

Tag summary

Content type

Image

Digest

sha256:c9ece5d47…

Size

91.3 MB

Last updated

almost 11 years ago

docker pull visualjeff/simple-http-server:0.0.1