-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlab_05_dockerfile
More file actions
28 lines (24 loc) · 878 Bytes
/
lab_05_dockerfile
File metadata and controls
28 lines (24 loc) · 878 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
FROM ubuntu
ENV TZ=Europe/Moscow
RUN apt-get update && apt-get install -y git python3 pip iputils-ping cmake gcc-12 libpq-dev postgresql-client wrk libssl-dev zlib1g-dev librdkafka-dev mysql-client libmysqlclient-dev libboost-all-dev\
&& apt-get clean
RUN git clone -b poco-1.12.4-release https://github.com/pocoproject/poco.git &&\
cd poco &&\
mkdir cmake-build &&\
cd cmake-build &&\
cmake .. &&\
cmake --build . --config Release &&\
cmake --build . --target install &&\
cd && rm poco/* -rf
RUN git clone https://github.com/tdv/redis-cpp.git &&\
cd redis-cpp &&\
mkdir build &&\
cd build &&\
cmake .. &&\
make &&\
make install &&\
cd ..
RUN ldconfig
ADD ./hl_mai_lab_05 /hl_mai_lab_05
RUN cd /hl_mai_lab_05 && mkdir build && cd build && cmake .. && make
ENTRYPOINT [ "/hl_mai_lab_05/build/hl_mai_lab_05" ]