|
1 | 1 | FROM megflow:latest as stage |
2 | | -ARG PY_VERSION |
3 | 2 |
|
4 | 3 | # build .whl |
5 | | -RUN eval "$(conda shell.bash hook)" && conda activate py${PY_VERSION} \ |
| 4 | +RUN eval "$(conda shell.bash hook)" && conda activate py3.6 \ |
| 5 | + && cargo build --release \ |
| 6 | + && cargo build --example megflow_run --release \ |
| 7 | + && cp target/release/examples/megflow_run flow-python/megflow/megflow_run_inner \ |
| 8 | + && cp target/release/megflow_quickstart flow-python/megflow/megflow_quickstart_inner \ |
| 9 | + && cd flow-python \ |
| 10 | + && python3 setup.py bdist_wheel -p linux-x86_64 -d ../dist |
| 11 | + |
| 12 | +RUN eval "$(conda shell.bash hook)" && conda activate py3.7 \ |
6 | 13 | && cargo build --release \ |
7 | 14 | && cargo build --example megflow_run \ |
8 | 15 | && cp target/release/examples/megflow_run flow-python/megflow/megflow_run_inner \ |
9 | 16 | && cp target/release/megflow_quickstart flow-python/megflow/megflow_quickstart_inner \ |
10 | 17 | && cd flow-python \ |
11 | 18 | && python3 setup.py bdist_wheel -p linux-x86_64 -d ../dist |
12 | 19 |
|
| 20 | +RUN eval "$(conda shell.bash hook)" && conda activate py3.8 \ |
| 21 | + && cargo build --release \ |
| 22 | + && cargo build --example megflow_run --release \ |
| 23 | + && cp target/release/examples/megflow_run flow-python/megflow/megflow_run_inner \ |
| 24 | + && cp target/release/megflow_quickstart flow-python/megflow/megflow_quickstart_inner \ |
| 25 | + && cd flow-python \ |
| 26 | + && python3 setup.py bdist_wheel -p linux-x86_64 -d ../dist |
| 27 | + |
| 28 | +RUN eval "$(conda shell.bash hook)" && conda activate py3.9 \ |
| 29 | + && cargo build --release \ |
| 30 | + && cargo build --example megflow_run --release \ |
| 31 | + && cp target/release/examples/megflow_run flow-python/megflow/megflow_run_inner \ |
| 32 | + && cp target/release/megflow_quickstart flow-python/megflow/megflow_quickstart_inner \ |
| 33 | + && cd flow-python \ |
| 34 | + && python3 setup.py bdist_wheel -p linux-x86_64 -d ../dist |
| 35 | + |
13 | 36 | # copy back to host |
14 | 37 | FROM scratch AS export-stage |
15 | 38 | COPY --from=stage /megflow-runspace/dist/ . |
0 commit comments