mirror of
https://github.com/Faridik/Carolyn.git
synced 2026-07-08 13:21:53 +00:00
Добавил мини приложение на фласке, обновил зависимости, открыл порты на композе
This commit is contained in:
parent
e23ad4463c
commit
2dec05a8c2
@ -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")
|
||||
|
||||
@ -1 +0,0 @@
|
||||
We wrote some textWe wrote some text
|
||||
@ -0,0 +1 @@
|
||||
Flask==2.0.0
|
||||
@ -4,6 +4,8 @@ services:
|
||||
spreadsheets:
|
||||
container_name: "carolyn-spreadsheets"
|
||||
build: ./SpreadsheetsService
|
||||
ports:
|
||||
- "5000:5000"
|
||||
environment:
|
||||
SECRETKEY: "HELLO-WORLD-@21XX 15AF"
|
||||
volumes:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user