This repository has been archived on 2024-01-17. You can view files and clone it, but cannot push or open issues or pull requests.
dlbot4/telegram-bot-api-container/Containerfile

34 lines
669 B
Text
Raw Permalink Normal View History

2023-08-13 19:12:28 +00:00
FROM docker.io/alpine:3.18 AS build
RUN apk add --no-cache \
make cmake \
g++ \
gperf \
linux-headers openssl-dev \
zlib-dev \
git
RUN git clone --recursive https://github.com/tdlib/telegram-bot-api.git && \
cd telegram-bot-api/ && \
mkdir build && \
cd build
WORKDIR telegram-bot-api/build
RUN cmake .. -DCMAKE_BUILD_TYPE=Release \
&& cmake --build . --target install
FROM docker.io/alpine:3.18
ENV TZ=America/Argentina/Buenos_Aires
RUN apk add --no-cache \
openssl \
zlib \
libstdc++
COPY --from=build /usr/local/bin/telegram-bot-api /usr/local/bin/telegram-bot-api
ENTRYPOINT telegram-bot-api
EXPOSE 8081