update: split the build phase in multiple RUN commands

Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it>
This commit is contained in:
Andrea Terzolo 2023-01-25 14:37:13 +01:00 committed by poiana
parent 8eb6fbf32d
commit acd1e0dc28

View File

@ -27,10 +27,11 @@ WORKDIR /build/release
# We need `make tests` and `make all` for integration tests. # We need `make tests` and `make all` for integration tests.
RUN source scl_source enable devtoolset-9; \ RUN source scl_source enable devtoolset-9; \
cmake ${CMAKE_OPTIONS} /source; \ cmake ${CMAKE_OPTIONS} /source; \
make falco -j${MAKE_JOBS}; \ make falco -j${MAKE_JOBS}
make package; \
make tests -j${MAKE_JOBS}; \ RUN make package
make all -j${MAKE_JOBS} RUN make tests -j${MAKE_JOBS}
RUN make all -j${MAKE_JOBS}
FROM scratch AS export-stage FROM scratch AS export-stage