-
Notifications
You must be signed in to change notification settings - Fork 266
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (22 loc) · 736 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (22 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM debian:trixie AS dependencies
RUN apt-get -qq update && \
DEBIAN_FRONTEND=noninteractive apt-get -qq install -y \
build-essential \
cmake \
libboost-dev \
libcurl4-openssl-dev \
nlohmann-json3-dev >/dev/null && \
rm -rf /var/lib/apt/lists/*
FROM dependencies AS builder
ARG MAKEFLAGS
ARG CMAKE_INSTALL_MESSAGE
ARG CMAKE_LOG_LEVEL
WORKDIR /usr/src/tgbot-cpp
COPY include include
COPY src src
COPY cmake cmake
COPY CMakeLists.txt Makefile ./
RUN make install-with-system INSTALL_PREFIX=/usr DESTDIR=/tmp/tgbot-cpp-install
FROM dependencies AS runtime
LABEL org.opencontainers.image.authors="Oleg Morozenkov <m@oleg.rocks>"
COPY --from=builder /tmp/tgbot-cpp-install/usr /usr