| # checkout the develop branch of APP4MC Transformation |
| FROM alpine/git as clone-stage |
| WORKDIR /app |
| RUN git clone --branch develop --single-branch https://git.eclipse.org/r/app4mc/org.eclipse.app4mc.addon.transformation.git |
| |
| # build via Maven |
| FROM maven:3.6.3-openjdk-17 as build-stage |
| WORKDIR /app |
| COPY --from=clone-stage /app/org.eclipse.app4mc.addon.transformation/simulation_generator/app4mc.sim /app |
| RUN mvn verify |
| |
| FROM scratch AS export-stage |
| COPY --from=build-stage /app/releng/org.eclipse.app4mc.amlt2systemc.product/target/products/org.eclipse.app4mc.amlt2systemc.product-linux.gtk.x86_64.zip / |
| |