Initial commit

Signed-off-by: Terekhin Alexandr <alex@bearns.me>
This commit is contained in:
2021-03-27 13:03:23 +03:00
commit 75ef73bf7e
3 changed files with 20 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
my_account.txt
+16
View File
@@ -0,0 +1,16 @@
FROM alpine:latest
RUN apk add --no-cache openssl-dev linux-headers zlib-dev gcc gperf cmake build-base git \
&& git clone --recursive https://github.com/tdlib/telegram-bot-api.git \
&& cd telegram-bot-api \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
&& cmake --build . --target install \
&& apk del linux-headers gcc gperf cmake build-base git
RUN adduser --no-create-home --uid 2000 --disabled-password tg-bot
ENV TELEGRAM_API_ID=""
ENV TELEGRAM_API_HASH=""
EXPOSE 8081/tcp
USER tg-bot
ENTRYPOINT ["/usr/local/bin/telegram-bot-api", "--local"]
Executable
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
docker build -t bearns.me/tg-api .
docker run bearns.me/tg-api