Skip to content

Commit

Permalink
feat: tdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Nov 7, 2023
1 parent ac4c030 commit a2cdc82
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ jobs:
short: 6
full: 6.3-php8.2-fpm

- name: tdlib
path: tdlib
version:
short: 1
full: 1.8.0

permissions:
contents: read
packages: write
Expand Down
1 change: 1 addition & 0 deletions tdlib/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
43 changes: 43 additions & 0 deletions tdlib/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
FROM ghcr.io/alwatr/alpine:3.17

ARG TDLIB_VERSION=1.8.0
RUN set -ex; \
apk add --no-cache --virtual .build-deps \
curl \
ca-certificates \
g++ \
make \
cmake \
gperf \
libressl-dev \
zlib-dev \
zlib-static \
linux-headers; \
mkdir /tmp/td/ && cd /tmp/td/; \
curl -sSLo tdlib.tar.gz https://github.com/tdlib/td/archive/refs/tags/v${TDLIB_VERSION}.tar.gz; \
tar -xzvf tdlib.tar.gz && cd td-${TDLIB_VERSION}; \
mkdir build && cd build; \
cmake -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_LTO=ON ..; \
ls -lAhFtr; \
cmake --build . --target install -j 4; \
ls -lAhFtr; \
make install; \
ls -lAhFtr /usr/local/lib/; \
apk del .build-deps; \
rm -rfv /tmp/td/;

ARG BUILD_REV
ARG BUILD_DATE
LABEL org.opencontainers.image.title="alwatr/tdlib" \
org.opencontainers.image.description="A library to access Telegram database, written in C++ and cross-platform, packaged by Alwatr." \
org.opencontainers.image.base.name="ghcr.io/alwatr/alpine:3.17" \
org.opencontainers.image.version="1.8.0" \
org.opencontainers.image.ref.name="1.8.0" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.created=${BUILD_DATE} \
org.opencontainers.image.revision=${BUILD_REV} \
org.opencontainers.image.vendor="Alwatr" \
org.opencontainers.image.source="https://github.com/Alwatr/containers/tree/main/tdlib" \
org.opencontainers.image.url="https://github.com/Alwatr/containers/tree/main/tdlib" \
org.opencontainers.image.documentation="https://github.com/Alwatr/containers/tree/main/tdlib" \
org.opencontainers.image.authors="S. Ali Mihandoost <[email protected]> (https://ali.mihandoost.com), S. Amir Mohammad Najafi <[email protected]> (https://njfamirm.ir/)"
3 changes: 3 additions & 0 deletions tdlib/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Alwatr Telegram Database Library Container

A library to access Telegram database, written in C++ and cross-platform, packaged by Alwatr.

0 comments on commit a2cdc82

Please sign in to comment.