forked from codingo/crithit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (25 loc) · 720 Bytes
/
Dockerfile
File metadata and controls
35 lines (25 loc) · 720 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
29
30
31
32
33
34
FROM alpine:latest AS build
RUN mkdir /crithit
COPY crithit/ /crithit/crithit/
COPY dep/ /crithit/dep/
RUN rm /crithit/crithit/CMakeCache.txt
RUN cd /crithit/dep \
&& tar xjf /crithit/dep/boost_1_70_0.tar.bz2
RUN ls -la /crithit/dep
RUN apk add --no-cache --virtual .build-deps \
build-base \
cmake \
linux-headers \
openssl-dev \
&& rm -rf /var/lib/apt/lists/* \
&& cd /crithit/crithit \
&& cmake -DBoost_INCLUDE_DIR=/crithit/dep/boost_1_70_0/ . \
&& make
FROM alpine:latest
RUN apk add --no-cache \
openssl-dev \
libstdc++ \
libgcc \
ca-certificates
COPY --from=build /crithit/crithit/crithit /usr/sbin
ENTRYPOINT ["/usr/sbin/crithit"]