Skip to content

Instantly share code, notes, and snippets.

@Tymek
Forked from jrnickell/serve-static
Last active February 13, 2019 00:42
Show Gist options
  • Save Tymek/1de0484637ee08e23b3693ee24674de5 to your computer and use it in GitHub Desktop.
Save Tymek/1de0484637ee08e23b3693ee24674de5 to your computer and use it in GitHub Desktop.
Simple static files server with Python in Docker
docker run \
-v $(pwd):$(pwd) \
-w $(pwd) \
-p 0.0.0.0:80:80 \
-it --rm --name="python-http-server" python:3 python \
-m http.server 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment