Austin Schuh | ab802d5 | 2020-07-03 18:11:11 -0700 | [diff] [blame] | 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 |