20 lines
887 B
Docker
20 lines
887 B
Docker
FROM alpine as builder
|
|
ADD 'https://github.com/Yamato-Security/hayabusa/releases/download/v2.16.0/hayabusa-2.16.0-linux-intel.zip' /hayabusa.zip
|
|
ADD 'https://github.com/Yamato-Security/takajo/releases/download/v2.5.0/takajo-2.5.0-linux.zip' /takajo.zip
|
|
RUN apk add -U unzip git
|
|
RUN mkdir /opt/hayabusa && cd /opt/hayabusa && unzip /hayabusa.zip && unzip /takajo.zip
|
|
RUN chmod +x /opt/hayabusa/*
|
|
RUN ln /opt/hayabusa/hayabusa-2.16.0-lin-x64-gnu /opt/hayabusa/hayabusa
|
|
RUN chmod +x /opt/hayabusa/hayabusa
|
|
RUN /opt/hayabusa/hayabusa-2.16.0-lin-x64-musl update-rules -r /opt/hayabusa/rules/
|
|
|
|
|
|
From ubuntu
|
|
COPY --from=0 /opt/hayabusa /opt/hayabusa
|
|
ENV PATH="${PATH}:/opt/hayabusa"
|
|
RUN apt update && apt install -y bash libcurl4 libpcre3 && rm -rf /var/lib/apt/lists/*
|
|
WORKDIR /data
|
|
RUN mkdir /output && touch /output/notmounted
|
|
ADD start.sh /root/start.sh
|
|
CMD ["/bin/bash","/root/start.sh"]
|