From 7eb71b6777f869aca08d6600e1664a300dea312c Mon Sep 17 00:00:00 2001 From: ai-bot Date: Sun, 11 Oct 2026 10:43:51 +0000 Subject: [PATCH] Add Dockerfile for the VardKey StartOS package --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7536455 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +# VardKey is a pure Python standard-library service, so the image needs the +# interpreter and the application source and nothing else. +FROM python:3.13-slim + +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 ./ +COPY static ./static + +ENV PORT=8080 +ENV DATABASE_PATH=/data/vardkey.sqlite3 + +EXPOSE 8080 + +# No USER line on purpose. The "main" volume is mounted at /data and must be +# writable without a chown, so the daemon runs as the image default (root). +CMD ["python3", "app.py"]