Links now live in data/links.json instead of hardcoded HTML, editable via /admin (add/rename/reorder/delete sections and links, per-link color and half-width side-by-side layout). New pages can be added without code changes. Docker image only needs rebuilding on code changes now, not on content changes (data/ is volume-mounted). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
22 lines
473 B
Docker
22 lines
473 B
Docker
# Use the official Python image
|
|
FROM python:3.14-slim
|
|
|
|
# Set the working directory in the container
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy the application into the container
|
|
COPY app.py .
|
|
COPY templates/ templates/
|
|
COPY static/ static/
|
|
COPY data/ data/
|
|
|
|
# Expose port 80
|
|
EXPOSE 80
|
|
|
|
# Start the app via a production WSGI server
|
|
CMD ["waitress-serve", "--host=0.0.0.0", "--port=80", "app:app"]
|