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
Cat /dev/Nulo 92191d0b74
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
usar servidor de bot custom
2023-08-13 16:12:37 -03:00

34 lines
669 B
Docker

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