-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM davidar/bootsh:latest AS stage0 | ||
ADD https://github.com/sabotage-linux/sabotage.git /src | ||
RUN /src/utils/boot-stage0.sh | ||
|
||
FROM stage0 AS stage0-amd64 | ||
SHELL [ "/bin/linux64", "/bin/sh", "-c" ] | ||
FROM stage0 AS stage0-386 | ||
SHELL [ "/bin/linux32", "/bin/sh", "-c" ] | ||
FROM stage0-$TARGETARCH AS stage1 | ||
|
||
RUN butch install stage1 | ||
RUN /src/utils/clean-stage1.sh | ||
RUN /src/utils/rebuild-stage1.sh | ||
RUN rm -rf /src/build /src/logs /src/tarballs | ||
|
||
FROM scratch | ||
COPY --from=stage1 / / | ||
CMD [ "/bin/sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ src/samu/samu: | |
|
||
clean: | ||
rm -rf build lib/toybox/generated | ||
$(MAKE) -C src/samu clean | ||
|
||
install: all | ||
scripts/install.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters