A Dockerized version of a Flask Server.
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.

27 lines
757 B

  1. # DockerPythonFlask
  2. This is a dockerized version of a Python3 Flask Server.
  3. ## Environment-variables
  4. There are no environment variables that get opened up.
  5. ## Volumes
  6. Set the following volumes with the -v tag.
  7. | Volume-Name | Container mount | Description |
  8. | ----------- | --------------- | ----------- |
  9. | app | /flask/app | directory for flask application |
  10. ## Ports
  11. Set the following volumes with the -p tag.
  12. | Container-Port | Recommed outside port | Protocol | Description |
  13. | -------------- | --------------------- | -------- | ----------- |
  14. | 5000 | 80 | TCP | HTTP port |
  15. ## Example run-command
  16. ``` docker run --name flask -v flask:/flask/app --restart unless-stopped -d -p 80:5000 tiynger/pythonflask ```