File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
- Based on tutorial from https://medium.com/@angellom/automatically-building-a-flask-docker-image-on-git-push-with-jenkins-5a30c9fc9beb
2
- Also based on https://blog.jetbrains.com/pycharm/2017/03/docker-compose-getting-flask-up-and-running/
1
+ Based on tutorial from https://medium.com/@angellom/automatically-building-a-flask-docker-image-on-git-push-with-jenkins-5a30c9fc9beb
2
+ Also based on https://blog.jetbrains.com/pycharm/2017/03/docker-compose-getting-flask-up-and-running/
3
+ Understanding volumes: https://container-solutions.com/understanding-volumes-docker/
4
+
3
5
4
6
Change #1
Original file line number Diff line number Diff line change 5
5
6
6
@app .route ('/' )
7
7
def hello_world ():
8
- s = 'Flask Dockerized #1 \n ' + str (sys .version )
8
+ s = "Flask Dockerized Update through volume #1 \n " + str (sys .version )
9
+ s += "\n "
10
+ with open ("test.txt" , "r" ) as f :
11
+ for line in f :
12
+ s += line
13
+
9
14
return s
10
15
11
16
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ version: '3.2'
2
2
services :
3
3
web :
4
4
volumes :
5
- - .:/flask-app
5
+ - .:/flask-app:ro
Original file line number Diff line number Diff line change
1
+ Original text
You can’t perform that action at this time.
0 commit comments