GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - urjitbhatia/docker-python-simplehttpserver

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
spec
spec
 
 
.rspec
.rspec
 
 
.ruby-gemset
.ruby-gemset
 
 
.ruby-version
.ruby-version
 
 
.travis.yml
.travis.yml
 
 
Dockerfile
Dockerfile
 
 
Gemfile
Gemfile
 
 
Guardfile
Guardfile
 
 
README.md
README.md
 
 
Rakefile
Rakefile
 
 

Repository files navigation

Docker Python SimpleHTTPServer

Build Status Docker Pulls Docker Stars Gittip

A Simple & Compact (< ~8.5 MB) Python webserver in a Docker Container.

By default, listens on port 8080

To serve files, volume mount a directory to /var/www inside the container.

Example Usage

To listen on port 8080 and serve files from directory /tmp/ on the host:

sudo docker run -d -v /tmp/:/var/www:ro -p 8080:8080 trinitronx/python-simplehttpserver

To listen on port 80 and serve files from directory /home/foo on the host:

sudo docker run --name python_simplehttpserver -d -v /home/foo:/var/www:ro -p 80:8080 trinitronx/python-simplehttpserver

To run server so it is only accessible to linked containers:

sudo docker run --name python_simplehttpserver -d -v /tmp/:/var/www:ro -p 8080:8080 trinitronx/python-simplehttpserver
# Then run your container & link it...
sudo docker run -ti --link python_simplehttpserver busybox wget -O -  http://python_simplehttpserver:8080/

# Another example:
# Use with trinitronx/fastest-servers as a MIRRORLIST_HOST for serving up mirrors.txt file for fastest-servers.rb to filter down to fastest found
sudo docker run -ti --link python_simplehttpserver -e FASTEST_SERVER_DEBUG=true -e MIRRORLIST_HOST=python_simplehttpserver -e MIRRORLIST_PORT=8080 -v /tmp/:/tmp/ trinitronx/fastest-servers

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.