Highly-opinionated (ex-bullshit-free) MTPROTO proxy for Telegram. If you use v1.0 or upgrade broke you proxy, please read the chapter Version 2
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

Dockerfile 870B

12345678910111213141516171819202122232425262728293031323334353637
  1. ###############################################################################
  2. # BUILD STAGE
  3. FROM golang:1.26-alpine AS build
  4. ENV CGO_ENABLED=0
  5. RUN set -x \
  6. && apk --no-cache --update add \
  7. bash \
  8. ca-certificates \
  9. git
  10. COPY . /app
  11. WORKDIR /app
  12. RUN set -x \
  13. && version="$(git describe --exact-match HEAD 2>/dev/null || git describe --tags --always)" \
  14. && go build \
  15. -trimpath \
  16. -mod=readonly \
  17. -ldflags="-extldflags '-static' -s -w -X 'main.version=$version'" \
  18. -a \
  19. -tags netgo
  20. ###############################################################################
  21. # PACKAGE STAGE
  22. FROM scratch
  23. ENTRYPOINT ["/mtg"]
  24. CMD ["run", "/config.toml"]
  25. COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
  26. COPY --from=build /app/mtg /mtg
  27. COPY --from=build /app/example.config.toml /config.toml