Browse Source

Merge branch 'master' of ssh+git://github.com/tiyn/dockerpythonflask

master
TiynGER 6 months ago
parent
commit
35e5ac731f
2 changed files with 9 additions and 3 deletions
  1. +8
    -2
      README.md
  2. +1
    -1
      src/Dockerfile

+ 8
- 2
README.md

@ -1,20 +1,26 @@
# DockerPythonFlask
#
This is a dockerized version of a Python3 Flask Server. This is a dockerized version of a Python3 Flask Server.
## Volumes ## Volumes
Set the following volumes with the -v tag. Set the following volumes with the -v tag.
| Volume-Name | Container mount | Description | | Volume-Name | Container mount | Description |
| ----------- | --------------- | ------------------------------- | | ----------- | --------------- | ------------------------------- |
| app | /flask | directory for flask application | | app | /flask | directory for flask application |
## Ports ## Ports
Set the following volumes with the -p tag. Set the following volumes with the -p tag.
| Container-Port | Recommed outside port | Protocol | Description | | Container-Port | Recommed outside port | Protocol | Description |
| -------------- | --------------------- | -------- | ----------- | | -------------- | --------------------- | -------- | ----------- |
| 5000 | 80 | TCP | HTTP port | | 5000 | 80 | TCP | HTTP port |
## Example run-command ## Example run-command
``` docker run --name flask -v flask:/flask --restart unless-stopped -d -p 80:5000 tiynger/pythonflask ```
` docker run --name flask -v flask:/flask --restart unless-stopped -d -p 80:5000 tiynger/pythonflask `
## Included Python3 packages ## Included Python3 packages

+ 1
- 1
src/Dockerfile

@ -6,7 +6,7 @@ RUN apt-get update
RUN apt-get install python3 python3-pip -y RUN apt-get install python3 python3-pip -y
RUN pip3 install flask flask-wtf flask-mail
RUN pip3 install flask flask-wtf flask-mail markdown pygments email-validator
WORKDIR /flask WORKDIR /flask

Loading…
Cancel
Save