From 2d89cb94aac06226564c059590b9c52a7c9afb5e Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 30 Oct 2023 11:49:43 +0100 Subject: [PATCH] Breaks RUN command with gcc tests and combine the clean up command. --- crossbuild.containerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crossbuild.containerfile b/crossbuild.containerfile index 7f686c8..73912ee 100644 --- a/crossbuild.containerfile +++ b/crossbuild.containerfile @@ -37,12 +37,15 @@ RUN mkdir /pkgs \ COPY --from=native /native /native COPY setup_native ./ RUN [ "/native/bash", "-c", "PATH=/native:$PATH ./setup_native import $(awk '{ print $1 }' pkgs)" ] -RUN gcc --print-search-dir && echo 'int main() { return 0; }' > main.c && gcc -o main main.c && ./main +RUN gcc --print-search-dir \ + && echo 'int main() { return 0; }' > main.c \ + && gcc -o main main.c \ + && ./main \ + && find /tmp -mindepth 1 -delete COPY build_source /usr/local/bin/ COPY build_indep /usr/local/bin/ COPY build_archdep /usr/local/bin/ COPY build /usr/local/bin/ -RUN find /tmp -mindepth 1 -delete COPY --from=mini_sudo /usr/local/bin/sudo /usr/local/bin/sudo RUN groupadd dev && useradd -m -g dev dev USER dev