automx: the launcher's wrapper is written by the build that ships it #76

Merged
jschoubben merged 1 commits from fix/automx-carries-its-own-wrapper into main 2026-09-25 21:44:47 +00:00
Showing only changes of commit aa8c4253f1 - Show all commits
+12
View File
@@ -21,6 +21,18 @@ RUN ./setupvenv.sh \
&& . .venv/bin/activate \
&& pip install automx2
# The launcher `start` expects. In the predecessor's image this wrapper appeared during a build
# step that never made it into the files this module carries — the image worked and the recipe
# could not reproduce it. Written here explicitly, verbatim from the proven image, so the build
# is the whole truth about the image again.
RUN mkdir -p .venv/scripts && printf '%s\n' \
'#!/usr/bin/env bash' \
'set -euo pipefail' \
'. .venv/bin/activate' \
"export FLASK_ENV='production'" \
"export FLASK_APP='automx2.server:app'" \
'flask "$@"' > .venv/scripts/flask.sh && chmod +x .venv/scripts/flask.sh
ENV AUTOMX2_CONF=/etc/automx2.conf
ADD automx/files/automx2.conf /etc/automx2.conf