Browse Source

build vysheng/tg from source

Fabian Peter Hammerle 5 years ago
commit
e77fdf4cf1
4 changed files with 41 additions and 0 deletions
  1. 3 0
      .gitmodules
  2. 30 0
      Dockerfile
  3. 7 0
      README.md
  4. 1 0
      tg

+ 3 - 0
.gitmodules

@@ -0,0 +1,3 @@
+[submodule "tg"]
+	path = tg
+	url = https://github.com/vysheng/tg.git

+ 30 - 0
Dockerfile

@@ -0,0 +1,30 @@
+FROM ubuntu:18.04
+
+# https://github.com/vysheng/tg/blob/master/README.md#linux-and-bsds
+RUN apt-get update && apt-get install --yes --no-install-recommends \
+    `# from readme` \
+    libconfig-dev \
+    libevent-dev \
+    libjansson-dev \
+    liblua5.2-dev \
+    libpython-dev \
+    libreadline-dev \
+    `#libssl-dev` \
+    lua5.2 \
+    make \
+    `# from failing configure` \
+    gcc \
+    zlib1g-dev \
+    `# from failing build` \
+    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"]

+ 7 - 0
README.md

@@ -0,0 +1,7 @@
+# docker: telegram-cli 🐳
+
+vysheng's telegram command line client ( https://github.com/vysheng )
+
+```sh
+docker run -it --rm -v telegram-config:/home/builder/.telegram-cli fphammerle/telegram-cli:latest
+```

+ 1 - 0
tg

@@ -0,0 +1 @@
+Subproject commit 6547c0b21b977b327b3c5e8142963f4bc246187a