-
Notifications
You must be signed in to change notification settings - Fork 26
/
Dockerfile.env
29 lines (23 loc) · 824 Bytes
/
Dockerfile.env
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
FROM opensuse/leap:latest
LABEL maintainer="[email protected]"
ENV container docker
RUN zypper -n install sudo which gcc gcc-c++ zlib gperf openssl openssl-devel cmake git php7 php7-devel php7-ctype php7-json &&\
zypper clean
RUN cd $HOME &&\
git clone https://github.com/tdlib/td.git &&\
git clone https://github.com/CopernicaMarketingSoftware/PHP-CPP.git &&\
git clone https://github.com/nlohmann/json.git
RUN cd $HOME/PHP-CPP && \
make &&\
make install &&\
make clean
RUN cd $HOME/json && mkdir build && cd build &&\
cmake ..&&\
make install &&\
make clean &&\
rm -rf $HOME/json/build
RUN cd $HOME/td && mkdir build && cd build &&\
cmake -DCMAKE_BUILD_TYPE=Release .. &&\
cmake --build . &&\
cmake --build . --target install &&\
rm -rf $HOME/td/build