-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (19 loc) · 804 Bytes
/
Dockerfile
File metadata and controls
22 lines (19 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM debian as builder
RUN apt-get update
RUN apt-get install -y make git zlib1g-dev libssl-dev gperf cmake clang libc++-dev libc++abi-dev
RUN git clone --recursive https://github.com/tdlib/telegram-bot-api.git build
WORKDIR /build
RUN rm -rf build && mkdir build
WORKDIR /build/build
RUN CXXFLAGS="-stdlib=libc++" CC=/usr/bin/clang CXX=/usr/bin/clang++ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=.. ..
RUN cmake --build . --target install
FROM debian:stable-slim
RUN apt-get update && \
apt-get install -y libssl1.1 zlib1g libc++-x.y libc++abi-x.y && \
apt-get clean && \
rm -fr /var/lob/apt/lists/*
RUN mkdir /data
COPY --from=builder /build/bin/telegram-bot-api /usr/bin/telegram-bot-api
WORKDIR /data
VOLUME /data
ENTRYPOINT ["/usr/bin/telegram-bot-api"]