1
0

Dockerfile 650 B

123456789101112131415161718192021222324252627282930
  1. FROM ubuntu:18.04
  2. # https://github.com/vysheng/tg/blob/master/README.md#linux-and-bsds
  3. RUN apt-get update && apt-get install --yes --no-install-recommends \
  4. `# from readme` \
  5. libconfig-dev \
  6. libevent-dev \
  7. libjansson-dev \
  8. liblua5.2-dev \
  9. libpython-dev \
  10. libreadline-dev \
  11. `#libssl-dev` \
  12. lua5.2 \
  13. make \
  14. `# from failing configure` \
  15. gcc \
  16. zlib1g-dev \
  17. `# from failing build` \
  18. libssl1.0-dev
  19. RUN adduser --system builder
  20. USER builder
  21. COPY --chown=builder:nogroup ./tg /tg
  22. WORKDIR /tg
  23. RUN ./configure
  24. RUN make
  25. RUN mkdir ~/.telegram-cli
  26. VOLUME ~/.telegram-cli
  27. CMD ["/tg/bin/telegram-cli"]