summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 3664680dbebe287d6727eb12705caafbfee18a84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM debian:latest
MAINTAINER Oleg Morozenkov <m@oleg.rocks>

RUN apt-get -qq update && \
    apt-get -qq install -y g++ make binutils cmake libssl-dev libboost-system-dev libcurl4-openssl-dev zlib1g-dev && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /usr/src/tgbot-cpp
COPY include include
COPY src src
COPY CMakeLists.txt ./

RUN cmake . && \
    make -j$(nproc) && \
    make install && \
    rm -rf /usr/src/tgbot-cpp/*