-
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
1 changed file
with
28 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM parrotsec/core | ||
LABEL maintainer "TAKANO Mitsuhiro <[email protected]>" | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV DEBCONF_NOWARNINGS=yes | ||
|
||
RUN grep '^deb ' /etc/apt/sources.list | sed 's/^deb/deb-src/g' > /etc/apt/sources.list.d/deb-src.list | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y git | ||
|
||
ENV ORIGIN=https://github.com/torvalds/linux.git | ||
RUN git clone --depth 1 ${ORIGIN} /build-kernel/linux | ||
RUN while :; do cd /build-kernel/linux && git fetch --unshallow && break || sleep 5; done | ||
RUN cd /build-kernel/linux && git pull --all | ||
|
||
RUN apt-get upgrade -y && apt-get dist-upgrade -y | ||
RUN apt-get build-dep -y linux | ||
RUN apt-get install -y llvm clang lld | ||
RUN apt-get install -y rpm | ||
RUN apt-get install -y curl python3-pip | ||
RUN apt-get clean | ||
|
||
COPY ./entrypoint.sh / | ||
RUN chmod 755 /entrypoint.sh | ||
EXPOSE 8000 | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
|