Добавил мини приложение на фласке, обновил зависимости, открыл порты на композе

This commit is contained in:
Serafim Urukov 2021-07-24 00:06:44 +03:00
parent e23ad4463c
commit 2dec05a8c2
4 changed files with 14 additions and 6 deletions

View File

@ -1,6 +1,12 @@
import pathlib
import os
from flask import Flask
f = open("/app/file.txt", "a")
f.write("We wrote some text")
f.close()
app = Flask(__name__)
@app.route("/")
def hello_world():
return "Hello world!\n"
if __name__ == "__main__":
app.run(debug=True, host="0.0.0.0")

View File

@ -1 +0,0 @@
We wrote some textWe wrote some text

View File

@ -0,0 +1 @@
Flask==2.0.0

View File

@ -4,6 +4,8 @@ services:
spreadsheets:
container_name: "carolyn-spreadsheets"
build: ./SpreadsheetsService
ports:
- "5000:5000"
environment:
SECRETKEY: "HELLO-WORLD-@21XX 15AF"
volumes: