Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d7839cc

Browse files
Gjacquenotlava
authored andcommitted
❇️ Added a first version of Dockerfile
1 parent e5ffc6c commit d7839cc

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Dockerfile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM debian:10 AS builder
2+
RUN apt-get update \
3+
&& apt-get install --yes --no-install-recommends \
4+
g++ \
5+
libpython3-dev \
6+
make \
7+
python3 \
8+
python3-dev \
9+
python3-numpy
10+
11+
ADD Makefile matplotlibcpp.h numpy_flags.py /opt/
12+
ADD examples/*.cpp /opt/examples/
13+
RUN cd /opt \
14+
&& make PYTHON_BIN=python3 \
15+
&& ls examples/build
16+
17+
FROM debian:10
18+
RUN apt-get update \
19+
&& apt-get install --yes --no-install-recommends \
20+
libpython3-dev \
21+
python3-matplotlib \
22+
python3-numpy
23+
24+
COPY --from=builder /opt/examples/build /opt/
25+
RUN cd /opt \
26+
&& ls \
27+
&& ./basic

0 commit comments

Comments
 (0)