8000 :sparkle: Added a first version of Dockerfile · on62/matplotlib-cpp@d7839cc · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 27 additions & 0 deletions
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)
0