build: container paths point at roundtable package

Keeps the image buildable after the package rename. Image name, container
name, compose service, and env vars still flip in PR 4.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-13 17:27:00 -04:00
parent fad1c12eac
commit fcd26346a2
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ RUN pip install --upgrade pip
WORKDIR /app WORKDIR /app
COPY pyproject.toml . COPY pyproject.toml .
COPY fabledscryer/ fabledscryer/ COPY roundtable/ roundtable/
RUN pip install --no-cache-dir . RUN pip install --no-cache-dir .
COPY alembic.ini . COPY alembic.ini .
@@ -34,4 +34,4 @@ RUN useradd -m -u 1000 app \
EXPOSE 5000 EXPOSE 5000
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]
CMD ["fabledscryer", "--host", "0.0.0.0", "--port", "5000"] CMD ["roundtable", "--host", "0.0.0.0", "--port", "5000"]
+3 -3
View File
@@ -5,7 +5,7 @@
# - Generates /etc/nut/*.conf from environment variables # - Generates /etc/nut/*.conf from environment variables
# - Starts NUT driver (upsdrvctl) and network daemon (upsd) # - Starts NUT driver (upsdrvctl) and network daemon (upsd)
# - Connects to the UPS over the network — no USB passthrough required # - Connects to the UPS over the network — no USB passthrough required
# - Then drops to 'app' user via gosu to run fabledscryer # - Then drops to 'app' user via gosu to run roundtable
# #
# When NUT_MANAGED=0 (default): # When NUT_MANAGED=0 (default):
# - Drops directly to 'app' user and runs the command # - Drops directly to 'app' user and runs the command
@@ -27,13 +27,13 @@ if [ "${NUT_MANAGED:-0}" = "1" ] || [ -f "$NUT_MANAGED_JSON" ]; then
NUT_OK=1 NUT_OK=1
if [ -f "$NUT_MANAGED_JSON" ]; then if [ -f "$NUT_MANAGED_JSON" ]; then
echo "[entrypoint] Found $NUT_MANAGED_JSON — configuring NUT from settings..." echo "[entrypoint] Found $NUT_MANAGED_JSON — configuring NUT from settings..."
python3 /app/fabledscryer/nut_setup.py --from-file "$NUT_MANAGED_JSON" || { python3 /app/roundtable/nut_setup.py --from-file "$NUT_MANAGED_JSON" || {
echo "[entrypoint] Warning: NUT config failed — UPS host may not be set yet. Skipping NUT startup." echo "[entrypoint] Warning: NUT config failed — UPS host may not be set yet. Skipping NUT startup."
NUT_OK=0 NUT_OK=0
} }
else else
echo "[entrypoint] NUT_MANAGED=1 — configuring NUT from environment..." echo "[entrypoint] NUT_MANAGED=1 — configuring NUT from environment..."
python3 /app/fabledscryer/nut_setup.py || { python3 /app/roundtable/nut_setup.py || {
echo "[entrypoint] Warning: NUT config failed — check NUT_UPS_HOST. Skipping NUT startup." echo "[entrypoint] Warning: NUT config failed — check NUT_UPS_HOST. Skipping NUT startup."
NUT_OK=0 NUT_OK=0
} }