mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-11-23 20:26:50 +01:00
28 lines
550 B
Docker
28 lines
550 B
Docker
FROM alpine:3.12.1 as builder
|
|
|
|
RUN apk --no-cache add \
|
|
build-base \
|
|
cmake \
|
|
openssl-dev \
|
|
zlib-dev \
|
|
gperf \
|
|
linux-headers
|
|
|
|
COPY . /src
|
|
|
|
WORKDIR /src/build
|
|
|
|
RUN cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
RUN cmake --build . --target install --
|
|
|
|
FROM alpine:3.12.1
|
|
|
|
RUN apk --no-cache add libstdc++ curl
|
|
|
|
COPY --from=builder /usr/local/bin/telegram-bot-api /usr/local/bin/telegram-bot-api
|
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
|
|
|
HEALTHCHECK CMD curl -f http://localhost:8082/ || exit 1
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|