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
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Dockerfile 640B

12345678910111213141516171819202122232425262728293031
  1. ###############################################################################
  2. # BUILD STAGE
  3. FROM golang:1.17-alpine AS build
  4. RUN set -x \
  5. && apk --no-cache --update add \
  6. bash \
  7. ca-certificates \
  8. curl \
  9. git \
  10. make
  11. COPY . /app
  12. WORKDIR /app
  13. RUN set -x \
  14. && make -j 4 static
  15. ###############################################################################
  16. # PACKAGE STAGE
  17. FROM scratch
  18. ENTRYPOINT ["/mtg"]
  19. CMD ["run", "/config.toml"]
  20. COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
  21. COPY --from=build /app/mtg /mtg
  22. COPY --from=build /app/example.config.toml /config.toml