-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (45 loc) · 1.17 KB
/
Dockerfile
File metadata and controls
57 lines (45 loc) · 1.17 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM ubuntu:latest
ENV TZ=Europe/Kiev
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && \
apt-get install -y \
git \
libboost-all-dev \
libgtest-dev \
cmake \
build-essential \
autoconf \
libtool \
pkg-config \
protobuf-compiler && \
apt-get clean
WORKDIR /librs
RUN git clone https://github.com/google/googletest.git -b release-1.11.0 && \
cd googletest && \
mkdir build && \
cd build && \
cmake .. && \
make && \
make install
ENV GRPC_RELEASE_TAG v1.43.2
WORKDIR /librs
RUN git clone -b ${GRPC_RELEASE_TAG} https://github.com/grpc/grpc && \
cd grpc && \
echo "--- submodule updating ---" && \
git submodule update --init && \
mkdir cmake/build && \
cd cmake/build && \
cmake ../.. && \
echo "--- making grpc ---" && \
make && \
make install
WORKDIR /apps
RUN git clone https://github.com/KharchenkoMaks/SimpleTaskManager.git && \
cd SimpleTaskManager && \
mkdir build && \
cd build && \
cmake .. && \
cmake --build . --target server --
EXPOSE 8586
WORKDIR /apps/SimpleTaskManager/build
ENTRYPOINT ["./server"]