From 411971185025ddf47e0d6dfdce8e25f790197649 Mon Sep 17 00:00:00 2001 From: Astra Date: Mon, 14 Sep 2026 19:04:08 +0100 Subject: [PATCH] containerfile: stop copying .env.example, it's excluded from the build context .containerignore excludes .env.* (to keep secrets out of the build), which also matches .env.example, so COPY --from=build /src/.env.example failed: that file was never actually present under /src in the build stage. Drop it -- ReadEnvGroups now falls back to an empty list instead of crashing when neither .env nor .env.example is present, and deploy hosts already provide their own via a mounted .env. Co-Authored-By: Claude Sonnet 5 --- Containerfile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Containerfile b/Containerfile index 3e5b3549..149dfe07 100644 --- a/Containerfile +++ b/Containerfile @@ -28,9 +28,5 @@ COPY --from=build /out/telesrv-admin /app/telesrv-admin COPY --from=build /out/createuser /app/createuser COPY --from=build /src/data/langpack /app/data/langpack COPY --from=build /src/data/sticker-seed /app/data/sticker-seed -# telesrv-admin's Server Settings env editor (procctl.Manager.ReadEnvGroups) -# reads this as the template of available settings; without it the editor -# always reports zero groups. -COPY --from=build /src/.env.example /app/.env.example EXPOSE 2398 2600 ENTRYPOINT ["/app/gramsrv"]