-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (28 loc) · 989 Bytes
/
Dockerfile
File metadata and controls
32 lines (28 loc) · 989 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
FROM alpine as build
RUN apk update && apk add --no-cache build-base cmake libcurl curl-dev make
COPY src /src
RUN mkdir /src/build
RUN cd /src/build
ENV CXXFLAGS="-DNOPROGRESS=1"
RUN cmake -DCMAKE_BUILD_TYPE=Release -DPFGPLUGINS=ON ../src
RUN make -j `grep -c proc /proc/cpuinfo`
FROM alpine as dqm
MAINTAINER Grigory Latyshev
RUN apk update && apk add --no-cache libcurl libstdc++ gnuplot
COPY --from=build /libdqmcpp.so /usr/lib/
COPY --from=build /dqm /usr/bin/
RUN mkdir /results
WORKDIR /results
ENTRYPOINT ["/usr/bin/dqm"]
FROM alpine as findDataset
MAINTAINER Grigory Latyshev
RUN apk update && apk add --no-cache libcurl libstdc++
COPY --from=build /libdqmcpp.so /usr/lib/
COPY --from=build /findDataset /usr/bin/
ENTRYPOINT ["/usr/bin/findDataset"]
FROM alpine as onlineRuns
MAINTAINER Grigory Latyshev
RUN apk update && apk add --no-cache libcurl libstdc++
COPY --from=build /libdqmcpp.so /usr/lib/
COPY --from=build /onlineRuns /usr/bin/
ENTRYPOINT ["/usr/bin/onlineRuns"]