Skip to content

Commit

Permalink
Breaks RUN command with gcc tests and combine the clean up command.
Browse files Browse the repository at this point in the history
  • Loading branch information
alee-ntap authored and nanory committed Oct 31, 2023
1 parent c7ed4e4 commit 2d89cb9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crossbuild.containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d89cb9

Please sign in to comment.