Difference between revisions of "Create a Kali image running cron"
From MyWiki
Line 1: | Line 1: | ||
<source lang=yaml> | <source lang=yaml> | ||
+ | FROM kalilinux/kali-rolling:latest | ||
+ | ARG KALI_METAPACKAGE=core | ||
+ | ENV DEBIAN_FRONTEND noninteractive | ||
+ | RUN apt-get update | ||
+ | RUN apt-get -y upgrade | ||
+ | RUN apt-get -y install kali-linux-${KALI_METAPACKAGE} | ||
+ | RUN apt-get clean | ||
+ | |||
+ | |||
+ | COPY entrypoint.sh /entrypoint.sh | ||
+ | RUN chmod +x /entrypoint.sh | ||
+ | ENTRYPOINT [ "/entrypoint.sh" ] | ||
</source> | </source> |
Revision as of 10:26, 25 June 2024
FROM kalilinux/kali-rolling:latest ARG KALI_METAPACKAGE=core ENV DEBIAN_FRONTEND noninteractive RUN apt-get update RUN apt-get -y upgrade RUN apt-get -y install kali-linux-${KALI_METAPACKAGE} RUN apt-get clean COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT [ "/entrypoint.sh" ]