Add meal tracker app: Flask + SQLite with auth, dashboard, 31 passing tests, Docker Compose

This commit is contained in:
agentbox
2026-07-31 21:25:59 +00:00
parent aabc83281b
commit d58828e0ef
17 changed files with 1214 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
FROM python:3.13-alpine
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY app.py models.py auth.py meals.py ./
COPY templates/ templates/
COPY static/ static/
# Create persistent data directory
RUN mkdir -p /data
ENV DB_PATH=/data/meals.db
EXPOSE 5000
# Generate a default secret key at build time (override in prod)
ENV SECRET_KEY=change-me-in-production
# Run in production mode (no debug, use a WSGI server)
CMD ["flask", "--app", "app:create_app()", "run", "--host=0.0.0.0", "--port=5000"]