|
|
|
FROM kalilinux/kali-rolling |
|
|
|
|
|
ARG BRANCH |
|
RUN if [ -z "$BRANCH" ]; then echo "ERROR: BRANCH is not set!" >&2; exit 1; fi |
|
ENV BRANCH=$BRANCH |
|
|
|
|
|
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales tzdata |
|
RUN sed -i -e 's/# \(en_US\.UTF-8 .*\)/\1/' /etc/locale.gen && \ |
|
dpkg-reconfigure --frontend=noninteractive locales && \ |
|
update-locale LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 |
|
RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime |
|
RUN echo "UTC" > /etc/timezone |
|
RUN dpkg-reconfigure -f noninteractive tzdata |
|
ENV LANG=en_US.UTF-8 |
|
ENV LANGUAGE=en_US:en |
|
ENV LC_ALL=en_US.UTF-8 |
|
ENV TZ=UTC |
|
|
|
|
|
COPY ./fs/ / |
|
|
|
|
|
RUN bash /ins/pre_install.sh $BRANCH |
|
RUN bash /ins/pre_install_kali.sh $BRANCH |
|
|
|
|
|
RUN bash /ins/install_A0.sh $BRANCH |
|
|
|
|
|
RUN bash /ins/install_additional.sh $BRANCH |
|
|
|
|
|
ARG CACHE_DATE=none |
|
RUN echo "cache buster $CACHE_DATE" && bash /ins/install_A02.sh $BRANCH |
|
|
|
|
|
RUN bash /ins/post_install.sh $BRANCH |
|
|
|
|
|
EXPOSE 22 80 |
|
|
|
RUN chmod +x /exe/initialize.sh /exe/run_A0.sh /exe/run_searxng.sh |
|
|
|
|
|
CMD ["/exe/initialize.sh", "$BRANCH"] |
|
|