-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 1019 Bytes
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Warden operator console for Cloud Run.
#
# The hosted dashboard runs in WARDEN_MODE=sim and uses only the Python
# standard library, so no requirements.txt install is needed in this image.
# Live MCP and live Gemini are not invoked from the hosted URL; they are
# exercised locally by scripts/live_check.py and scripts/otel_smoke.py.
FROM python:3.12-slim
WORKDIR /app
# Copy only what the web dashboard needs.
COPY warden ./warden
# preview/ holds cover.png + the Dynatrace screenshots the Live Evidence tab
# serves from /preview/<file>. Optional: if any image is missing, the tab
# renders a styled placeholder instead so a partial folder is fine.
COPY preview ./preview
# Cloud Run injects PORT at runtime; the app picks it up via PORT env (see
# warden/web/app.py). Bind 0.0.0.0 so the container is reachable from outside.
ENV WARDEN_MODE=sim \
WARDEN_WEB_HOST=0.0.0.0 \
PYTHONUNBUFFERED=1
# Documented default; Cloud Run will override via $PORT.
EXPOSE 8080
CMD ["python", "-m", "warden.web.app"]