-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (22 loc) · 688 Bytes
/
Dockerfile
File metadata and controls
27 lines (22 loc) · 688 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
# Base image
FROM ubuntu AS buildstage
# Install build tools
RUN apt-get update --fix-missing && apt-get upgrade -y
RUN apt-get -y install \
cmake pkg-config \
libopenmpi-dev
# Change working directory
WORKDIR /src
# Copy the current folder which contains C++ source code to the Docker image
COPY . .
# Use cmake to compile the cpp source file. cmake@v3.10.x .
RUN cmake -E make_directory build && \
cmake -E chdir ./build cmake -DCMAKE_BUILD_TYPE=Release .. && \
cmake --build ./build
# # Check if the program has dynamic dependencies
# RUN cd /src/bin && \
# ldd tutorial && \
# ldd mandel && \
# ldd linked && \
# ldd prodCons && \
# ldd pi_mc