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 <noreply@anthropic.com>
This commit is contained in:
Astra 2026-09-14 19:04:08 +01:00
parent 39f5468b8b
commit 4119711850

View file

@ -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"]