-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
43 lines (32 loc) · 897 Bytes
/
Dockerfile
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
FROM alpine:latest
RUN apk update \
&& apk upgrade \
&& apk add --no-cache \
clang \
clang-dev \
alpine-sdk \
dpkg \
cmake \
ccache \
python3
RUN ln -sf /usr/bin/clang /usr/bin/cc \
&& ln -sf /usr/bin/clang++ /usr/bin/c++ \
&& update-alternatives --install /usr/bin/cc cc /usr/bin/clang 10\
&& update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++ 10\
&& update-alternatives --auto cc \
&& update-alternatives --auto c++ \
&& update-alternatives --display cc \
&& update-alternatives --display c++ \
&& ls -l /usr/bin/cc /usr/bin/c++ \
&& cc --version \
&& c++ --version
RUN apk add postgresql-dev
ADD utility /service/utility
WORKDIR /service/utility
RUN ./install-oatpp-modules.sh
ADD . /service
WORKDIR /service/build
RUN cmake ..
RUN make
EXPOSE 8000 8000
ENTRYPOINT ["./example-postgresql-exe"]