Compare commits

...

2 commits

Author SHA1 Message Date
2ffdb1beb5 Merge branch 'fix/containerfile-drop-env-example-copy'
Some checks are pending
CI / Go tests (push) Waiting to run
CI / Admin web build (push) Waiting to run
CI / Grammy store bot (push) Waiting to run
CI / Docker main topology smoke (push) Waiting to run
2026-09-14 19:04:11 +01:00
4119711850 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>
2026-09-14 19:04:08 +01:00

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