123456789101112131415161718192021222324252627282930 |
- FROM ubuntu:18.04
- RUN apt-get update && apt-get install --yes --no-install-recommends \
- `
- libconfig-dev \
- libevent-dev \
- libjansson-dev \
- liblua5.2-dev \
- libpython-dev \
- libreadline-dev \
- `
- lua5.2 \
- make \
- `
- gcc \
- zlib1g-dev \
- `
- libssl1.0-dev
- RUN adduser --system builder
- USER builder
- COPY --chown=builder:nogroup ./tg /tg
- WORKDIR /tg
- RUN ./configure
- RUN make
- RUN mkdir ~/.telegram-cli
- VOLUME ~/.telegram-cli
- CMD ["/tg/bin/telegram-cli"]
|