Simple lightweight python files server. #krash https://pages.charlesreid1.com/d-python-files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
935 B

6 years ago
# d-python-files
6 years ago
This container runs a simple lightweight Python
HTTP file server for files.charlesreid1.com.
Here's the one-liner:
6 years ago
```
6 years ago
python3 -m http.simple -b <docker-ip> -p <port>
6 years ago
```
6 years ago
This binds to the docker network and listens for requests on a port.
Requests for files.charlesreid1.com are reverse-proxied by the nginx
frontend (see [d-nginx-charlesreid1](https://git.charlesreid1.com/docker/d-nginx-charlesreid1))
and passed along to the internal docker network.
6 years ago
This uses `jfloff/alpine-python:recent`
(see [jflof/alpine-python](https://github.com/jfloff/alpine-python)).
6 years ago
## Links
[documentation: d-python-files container](https://pages.charlesreid1.com/d-python-files/) (you are here)
[source code on git.charlesreid1.com: d-python-files](https://git.charlesreid1.com/docker/d-python-files)
[source code on github.com: charlesreid1-docker/d-python-files](https://github.com/charlesreid1-docker/d-python-files)