forked from axelschacher/cpack-exercise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (31 loc) · 861 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
From ubuntu:20.04
COPY inittimezone /usr/local/bin/inittimezone
# Run inittimezone and install a few dependencies
RUN apt-get -qq update && \
inittimezone && \
apt-get -qq -y install \
build-essential \
cmake \
g++ \
git \
libboost-all-dev \
wget \
libdeal.ii-dev \
vim \
libyaml-cpp-dev
ADD . /cpack-exercise
WORKDIR /cpack-exercise
# Create build directory and start make executable
RUN mkdir build \
&& cd build \
&& cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release .. \
&& make package
# Execute the program
RUN cd build \
&& ./cpackexample
# Install the package
RUN cd build && dpkg -i cpackexample_0.2.0_amd64.deb \
&& apt-get install ./cpackexample_0.2.0_amd64.deb
# Execute the program
RUN cd build && cpackexample ../yamlParser/config.yml
CMD ["/bin/bash"]