Primer commit limpio para Gitea

This commit is contained in:
2026-08-11 23:14:01 -05:00
commit d1999061ad
8 changed files with 70 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["python", "app.py"]
+32
View File
@@ -0,0 +1,32 @@
import os
import sqlite3
from flask import Flask, send_from_directory
app = Flask(__name__)
DB_PATH = os.environ.get('DB_PATH', '/app/db/pendientes.db')
def init_db():
os.makedirs(os.path.dirname(DB_PATH), exist_ok=True)
conn = sqlite3.connect(DB_PATH)
conn.execute('''
CREATE TABLE IF NOT EXISTS pendientes (
id INTEGER PRIMARY KEY AUTOINCREMENT,
descripcion TEXT NOT NULL,
fecha TEXT NOT NULL,
estado TEXT NOT NULL,
urgencia TEXT NOT NULL
)
''')
conn.commit()
conn.close()
@app.route('/')
def index():
return send_from_directory('/app/frontend', 'index.html')
if __name__ == '__main__':
init_db()
app.run(host='0.0.0.0', port=5000)
+1
View File
@@ -0,0 +1 @@
Flask==3.0.0