Section 31 point 2: ship maintenance.py in the image
This commit is contained in:
1 parent
5a22fd0022
commit
6d60a1024f
1 file changed
+4
-2
+4
-2
@@ -6,8 +6,10 @@ WORKDIR /app
|
|||||||
|
|
||||||
# The whole application. static/ MUST be copied: app.py answers /health from
|
# 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
|
# code, but every page and asset is read from ./static, so an image without it
|
||||||
# reports a healthy service whose entire UI answers 404.
|
# reports a healthy service whose entire UI answers 404. maintenance.py MUST be
|
||||||
COPY app.py database.py alerts.py export.py validation.py ./
|
# 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
|
COPY static ./static
|
||||||
|
|
||||||
ENV PORT=8080
|
ENV PORT=8080
|
||||||
|
|||||||
Reference in new issue
Block a user