diff --git a/Dockerfile b/Dockerfile index eb58bf4c2..4ee30712b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Author: The Exegol Project -FROM debian:11 +FROM debian:11-slim ARG TAG="local" ARG VERSION="local" @@ -12,51 +12,45 @@ LABEL org.exegol.build_date="${BUILD_DATE}" LABEL org.exegol.app="Exegol" LABEL org.exegol.src_repository="https://github.com/ThePorgs/Exegol-images" -RUN echo "${TAG}-${VERSION}" > /opt/.exegol_version - -ADD . sources /root/sources/ +COPY sources /root/sources/ WORKDIR /root/sources/install -RUN chmod +x entrypoint.sh - -RUN ./entrypoint.sh package_base - # WARNING: package_most_used can't be used with other functions other than: package_base, post_install -# RUN ./entrypoint.sh package_most_used - -# WARNING: the following installs (except: package_base, post_install) can't be used with package_most_used -RUN ./entrypoint.sh package_misc -RUN ./entrypoint.sh package_misc_configure -RUN ./entrypoint.sh package_c2 -RUN ./entrypoint.sh package_c2_configure -RUN ./entrypoint.sh package_wordlists -RUN ./entrypoint.sh package_wordlists_configure -RUN ./entrypoint.sh package_cracking -RUN ./entrypoint.sh package_cracking_configure -RUN ./entrypoint.sh package_osint -RUN ./entrypoint.sh package_osint_configure -RUN ./entrypoint.sh package_web -RUN ./entrypoint.sh package_web_configure -RUN ./entrypoint.sh package_ad -RUN ./entrypoint.sh package_ad_configure -RUN ./entrypoint.sh package_mobile -RUN ./entrypoint.sh package_iot -RUN ./entrypoint.sh package_rfid -RUN ./entrypoint.sh package_voip -RUN ./entrypoint.sh package_sdr -RUN ./entrypoint.sh package_network -RUN ./entrypoint.sh package_wifi -RUN ./entrypoint.sh package_forensic -RUN ./entrypoint.sh package_cloud -RUN ./entrypoint.sh package_steganography -RUN ./entrypoint.sh package_reverse -RUN ./entrypoint.sh package_crypto -RUN ./entrypoint.sh package_code_analysis - -RUN ./entrypoint.sh post_install - -RUN rm -rf /root/sources +# ./entrypoint.sh package_most_used + +RUN echo "${TAG}-${VERSION}" > /opt/.exegol_version && \ + chmod +x entrypoint.sh && \ + ./entrypoint.sh package_base && \ + ./entrypoint.sh package_misc && \ + ./entrypoint.sh package_misc_configure && \ + ./entrypoint.sh package_c2 && \ + ./entrypoint.sh package_c2_configure && \ + ./entrypoint.sh package_wordlists && \ + ./entrypoint.sh package_wordlists_configure && \ + ./entrypoint.sh package_cracking && \ + ./entrypoint.sh package_cracking_configure && \ + ./entrypoint.sh package_osint && \ + ./entrypoint.sh package_osint_configure && \ + ./entrypoint.sh package_web && \ + ./entrypoint.sh package_web_configure && \ + ./entrypoint.sh package_ad && \ + ./entrypoint.sh package_ad_configure && \ + ./entrypoint.sh package_mobile && \ + ./entrypoint.sh package_iot && \ + ./entrypoint.sh package_rfid && \ + ./entrypoint.sh package_voip && \ + ./entrypoint.sh package_sdr && \ + ./entrypoint.sh package_network && \ + ./entrypoint.sh package_wifi && \ + ./entrypoint.sh package_forensic && \ + ./entrypoint.sh package_cloud && \ + ./entrypoint.sh package_steganography && \ + ./entrypoint.sh package_reverse && \ + ./entrypoint.sh package_crypto && \ + ./entrypoint.sh package_code_analysis && \ + ./entrypoint.sh post_install && \ + rm -rf /root/sources /var/lib/apt/lists/* WORKDIR /workspace diff --git a/ad.dockerfile b/ad.dockerfile index e4dd721bb..8513b25ba 100644 --- a/ad.dockerfile +++ b/ad.dockerfile @@ -1,6 +1,6 @@ # Author: The Exegol Project -FROM debian:11 +FROM debian:11-slim ARG TAG="local" ARG VERSION="local" @@ -12,35 +12,32 @@ LABEL org.exegol.build_date="${BUILD_DATE}" LABEL org.exegol.app="Exegol" LABEL org.exegol.src_repository="https://github.com/ThePorgs/Exegol-images" -RUN echo "${TAG}-${VERSION}" > /opt/.exegol_version - -ADD . sources /root/sources/ +COPY sources /root/sources/ WORKDIR /root/sources/install -RUN chmod +x entrypoint.sh - -RUN ./entrypoint.sh package_base - -# WARNING: the following installs (except: package_base, post_install) can't be used with package_most_used -RUN ./entrypoint.sh package_misc -RUN ./entrypoint.sh package_misc_configure -RUN ./entrypoint.sh package_c2 -RUN ./entrypoint.sh package_c2_configure -RUN ./entrypoint.sh package_wordlists -RUN ./entrypoint.sh package_wordlists_configure -RUN ./entrypoint.sh package_cracking -RUN ./entrypoint.sh package_cracking_configure -RUN ./entrypoint.sh package_web -RUN ./entrypoint.sh package_web_configure -RUN ./entrypoint.sh package_ad -RUN ./entrypoint.sh package_ad_configure -RUN ./entrypoint.sh package_network - -RUN ./entrypoint.sh post_install - -RUN rm -rf /root/sources +# WARNING: package_most_used can't be used with other functions other than: package_base, post_install +# ./entrypoint.sh package_most_used + +RUN echo "${TAG}-${VERSION}" > /opt/.exegol_version && \ + chmod +x entrypoint.sh && \ + ./entrypoint.sh package_base && \ + ./entrypoint.sh package_misc && \ + ./entrypoint.sh package_misc_configure && \ + ./entrypoint.sh package_c2 && \ + ./entrypoint.sh package_c2_configure && \ + ./entrypoint.sh package_wordlists && \ + ./entrypoint.sh package_wordlists_configure && \ + ./entrypoint.sh package_cracking && \ + ./entrypoint.sh package_cracking_configure && \ + ./entrypoint.sh package_web && \ + ./entrypoint.sh package_web_configure && \ + ./entrypoint.sh package_ad && \ + ./entrypoint.sh package_ad_configure && \ + ./entrypoint.sh package_network + ./entrypoint.sh post_install && \ + rm -rf /root/sources /var/lib/apt/lists/* WORKDIR /workspace -ENTRYPOINT ["/.exegol/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/.exegol/entrypoint.sh"] diff --git a/debug.dockerfile b/debug.dockerfile index b2854ae60..a53fe6b98 100644 --- a/debug.dockerfile +++ b/debug.dockerfile @@ -1,6 +1,6 @@ # Author: The Exegol Project -FROM debian:11 +FROM debian:11-slim ARG TAG="local" ARG VERSION="local" @@ -12,19 +12,15 @@ LABEL org.exegol.build_date="${BUILD_DATE}" LABEL org.exegol.app="Exegol" LABEL org.exegol.src_repository="https://github.com/ThePorgs/Exegol-images" -RUN echo "${TAG}-${VERSION}" > /opt/.exegol_version - -ADD . sources /root/sources/ +COPY sources /root/sources/ WORKDIR /root/sources/install -RUN chmod +x entrypoint.sh - -RUN ./entrypoint.sh package_base_debug - -RUN ./entrypoint.sh post_install - -RUN rm -rf /root/sources +RUN echo "${TAG}-${VERSION}" > /opt/.exegol_version && \ + chmod +x entrypoint.sh && \ + ./entrypoint.sh package_base_debug && \ + ./entrypoint.sh post_install && \ + rm -rf /root/sources /var/lib/apt/lists/* WORKDIR /workspace diff --git a/light.dockerfile b/light.dockerfile index f21a52aaa..4ce620d4f 100644 --- a/light.dockerfile +++ b/light.dockerfile @@ -1,6 +1,6 @@ # Author: The Exegol Project -FROM debian:11 +FROM debian:11-slim ARG TAG="local" ARG VERSION="local" @@ -12,27 +12,22 @@ LABEL org.exegol.build_date="${BUILD_DATE}" LABEL org.exegol.app="Exegol" LABEL org.exegol.src_repository="https://github.com/ThePorgs/Exegol-images" -RUN echo "${TAG}-${VERSION}" > /opt/.exegol_version - -ADD . sources /root/sources/ +COPY sources /root/sources/ WORKDIR /root/sources/install -RUN chmod +x entrypoint.sh - -RUN ./entrypoint.sh package_base - # WARNING: package_most_used can't be used with other functions other than: package_base, post_install -RUN ./entrypoint.sh package_most_used - -# WARNING: the following installs (except: package_base, post_install) can't be used with package_most_used -RUN ./entrypoint.sh package_misc -RUN ./entrypoint.sh package_misc_configure - -RUN ./entrypoint.sh post_install +# ./entrypoint.sh package_most_used -RUN rm -rf /root/sources +RUN echo "${TAG}-${VERSION}" > /opt/.exegol_version && \ + chmod +x entrypoint.sh && \ + ./entrypoint.sh package_base && \ + ./entrypoint.sh package_most_used && \ + ./entrypoint.sh package_misc && \ + ./entrypoint.sh package_misc_configure && \ + ./entrypoint.sh post_install && \ + rm -rf /root/sources /var/lib/apt/lists/* WORKDIR /workspace -ENTRYPOINT ["/.exegol/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/.exegol/entrypoint.sh"] diff --git a/osint.dockerfile b/osint.dockerfile index 4cf47d2c6..9a75751bc 100644 --- a/osint.dockerfile +++ b/osint.dockerfile @@ -1,6 +1,6 @@ # Author: The Exegol Project -FROM debian:11 +FROM debian:11-slim ARG TAG="local" ARG VERSION="local" @@ -12,26 +12,23 @@ LABEL org.exegol.build_date="${BUILD_DATE}" LABEL org.exegol.app="Exegol" LABEL org.exegol.src_repository="https://github.com/ThePorgs/Exegol-images" -RUN echo "${TAG}-${VERSION}" > /opt/.exegol_version - -ADD . sources /root/sources/ +COPY sources /root/sources/ WORKDIR /root/sources/install -RUN chmod +x entrypoint.sh - -RUN ./entrypoint.sh package_base - -# WARNING: the following installs (except: package_base, post_install) can't be used with package_most_used -RUN ./entrypoint.sh package_misc -RUN ./entrypoint.sh package_misc_configure -RUN ./entrypoint.sh package_osint -RUN ./entrypoint.sh package_osint_configure - -RUN ./entrypoint.sh post_install +# WARNING: package_most_used can't be used with other functions other than: package_base, post_install +# ./entrypoint.sh package_most_used -RUN rm -rf /root/sources +RUN echo "${TAG}-${VERSION}" > /opt/.exegol_version && \ + chmod +x entrypoint.sh && \ + ./entrypoint.sh package_base && \ + ./entrypoint.sh package_misc && \ + ./entrypoint.sh package_misc_configure && \ + ./entrypoint.sh package_osint && \ + ./entrypoint.sh package_osint_configure && \ + ./entrypoint.sh post_install && \ + rm -rf /root/sources /var/lib/apt/lists/* WORKDIR /workspace -ENTRYPOINT ["/.exegol/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/.exegol/entrypoint.sh"] diff --git a/web.dockerfile b/web.dockerfile index b811d1f20..23be4fafd 100644 --- a/web.dockerfile +++ b/web.dockerfile @@ -1,6 +1,6 @@ # Author: The Exegol Project -FROM debian:11 +FROM debian:11-slim ARG TAG="local" ARG VERSION="local" @@ -12,33 +12,30 @@ LABEL org.exegol.build_date="${BUILD_DATE}" LABEL org.exegol.app="Exegol" LABEL org.exegol.src_repository="https://github.com/ThePorgs/Exegol-images" -RUN echo "${TAG}-${VERSION}" > /opt/.exegol_version - -ADD . sources /root/sources/ +COPY sources /root/sources/ WORKDIR /root/sources/install -RUN chmod +x entrypoint.sh - -RUN ./entrypoint.sh package_base - -# WARNING: the following installs (except: package_base, post_install) can't be used with package_most_used -RUN ./entrypoint.sh package_misc -RUN ./entrypoint.sh package_misc_configure -RUN ./entrypoint.sh package_wordlists -RUN ./entrypoint.sh package_wordlists_configure -RUN ./entrypoint.sh package_cracking -RUN ./entrypoint.sh package_cracking_configure -RUN ./entrypoint.sh package_osint -RUN ./entrypoint.sh package_osint_configure -RUN ./entrypoint.sh package_web -RUN ./entrypoint.sh package_web_configure -RUN ./entrypoint.sh package_code_analysis - -RUN ./entrypoint.sh post_install - -RUN rm -rf /root/sources +# WARNING: package_most_used can't be used with other functions other than: package_base, post_install +# ./entrypoint.sh package_most_used + +RUN echo "${TAG}-${VERSION}" > /opt/.exegol_version && \ + chmod +x entrypoint.sh && \ + ./entrypoint.sh package_base && \ + ./entrypoint.sh package_misc && \ + ./entrypoint.sh package_misc_configure && \ + ./entrypoint.sh package_wordlists && \ + ./entrypoint.sh package_wordlists_configure && \ + ./entrypoint.sh package_cracking && \ + ./entrypoint.sh package_cracking_configure && \ + ./entrypoint.sh package_osint && \ + ./entrypoint.sh package_osint_configure && \ + ./entrypoint.sh package_web && \ + ./entrypoint.sh package_web_configure && \ + ./entrypoint.sh package_code_analysis && \ + ./entrypoint.sh post_install && \ + rm -rf /root/sources /var/lib/apt/lists/* WORKDIR /workspace -ENTRYPOINT ["/.exegol/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/.exegol/entrypoint.sh"]