From 6d60a1024fb00181e87d650c8f7782ab6e5e9a99 Mon Sep 17 00:00:00 2001 From: ai-bot Date: Tue, 13 Oct 2026 08:21:49 +0000 Subject: [PATCH] Section 31 point 2: ship maintenance.py in the image --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7536455..e5d9013 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,10 @@ WORKDIR /app # The whole application. static/ MUST be copied: app.py answers /health from # code, but every page and asset is read from ./static, so an image without it -# reports a healthy service whose entire UI answers 404. -COPY app.py database.py alerts.py export.py validation.py ./ +# reports a healthy service whose entire UI answers 404. maintenance.py MUST be +# copied too: the StartOS actions run it in a temporary subcontainer, so an +# image without it fails at runtime on the box while the tests stay green. +COPY app.py database.py alerts.py export.py validation.py maintenance.py ./ COPY static ./static ENV PORT=8080