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
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Dockerfile 676B

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