- Split app.py into routes + ascii_engine.py (stdlib-only procedural generation: figlet banners, creatures, patterns, scenes, classics) - API: /api/random?category=..., /api/categories, richer JSON payload - New frontend: templates/index.html + static/ (vanilla JS/CSS) - 4 themes (graphite/paper/phosphor/amber), localStorage persist, no-flash boot, prefers-color-scheme default - Scramble-resolve art transition, reduced-motion support - Responsive: rail collapses to chips <760px, art auto-fits width - Fix grid blowout on mobile (min-width: 0 on stage children) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
18 lines
252 B
Docker
18 lines
252 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Install Flask
|
|
RUN pip install --no-cache-dir flask
|
|
|
|
# Copy the app
|
|
COPY app.py ascii_engine.py ./
|
|
COPY templates ./templates
|
|
COPY static ./static
|
|
|
|
# Expose port
|
|
EXPOSE 5000
|
|
|
|
# Run the app
|
|
CMD ["python", "app.py"]
|