Skip to content

Commit

Permalink
add parrot dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
takano32 committed Mar 9, 2024
1 parent 00ac95d commit 34caf37
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions parrot/Dockerfile
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"]

0 comments on commit 34caf37

Please sign in to comment.