-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
39 lines (37 loc) · 863 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM pataquets/ubuntu:xenial
RUN \
apt-get update && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y \
build-essential \
git \
luajit \
luarocks \
libreadline-dev \
libconfig-dev \
libssl-dev \
lua5.2 \
liblua5.2-dev \
libevent-dev \
libjansson-dev \
libpython-dev \
zlib1g-dev \
&& \
git clone --recursive https://github.com/vysheng/tg.git /tg && \
cd /tg && \
./configure && \
cd /tg && \
make && \
mv -v /tg/bin/* /usr/bin/ && \
mkdir -vp /etc/telegram-cli/ && \
mv -v /tg/tg-server.pub /etc/telegram-cli/server.pub && \
rm -rf /tg/ \
&& \
DEBIAN_FRONTEND=noninteractive \
apt-get purge -y --auto-remove \
build-essential \
git \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/
ENTRYPOINT [ "/usr/bin/telegram-cli" ]