Skip to content

Commit

Permalink
Combining multiple RUN commands for build envirnoment setup.
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 2ce82b4 commit c7ed4e4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions crossbuild.containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ FROM $target_arch/$image
WORKDIR /tmp
COPY debian-src.sources local-pkgs.list /etc/apt/sources.list.d/
COPY local-pkgs /etc/apt/preferences.d/
RUN mkdir /pkgs && touch /pkgs/Packages
COPY pkgs ./
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y build-essential ca-certificates debhelper devscripts git yq $(awk '{ print $1 }' pkgs)
RUN apt-mark hold $(awk '{ print $1 }' pkgs)
RUN mkdir /pkgs \
&& touch /pkgs/Packages \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install \
--no-install-recommends -y build-essential ca-certificates debhelper \
devscripts git yq $(awk '{ print $1 }' pkgs) \
&& apt-mark hold $(awk '{ print $1 }' pkgs)
COPY --from=native /native /native
COPY setup_native ./
RUN [ "/native/bash", "-c", "PATH=/native:$PATH ./setup_native import $(awk '{ print $1 }' pkgs)" ]
Expand Down

0 comments on commit c7ed4e4

Please sign in to comment.