refactor from disgusting monolith

This commit is contained in:
2026-01-24 17:20:00 -05:00
parent 22c6c01007
commit b4728e3dde
12 changed files with 390 additions and 165 deletions

View File

@@ -1,12 +1,22 @@
# Use Python 3.12 slim image
FROM python:3.12-slim
# Set working directory
WORKDIR /app
# Copy and install dependencies first (cache-friendly)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the app
COPY app.py .
COPY config.py .
COPY utils/ ./utils
COPY templates/ ./templates
COPY static/ ./static
# Expose the Flask port
EXPOSE 5000
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]
# Run the app with Gunicorn
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]