first commit

This commit is contained in:
tabledevil
2023-11-28 18:32:50 +01:00
commit 15a788436a
2 changed files with 52 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM alpine as builder
ADD 'https://github.com/Yamato-Security/hayabusa/releases/download/v2.10.1/hayabusa-2.10.1-all-platforms.zip' /hayabusa.zip
RUN apk add -U unzip git
RUN mkdir /opt/hayabusa && cd /opt/hayabusa && unzip /hayabusa.zip
RUN chmod +x /opt/hayabusa/hayabusa-2.10.1-lin-musl
RUN ln /opt/hayabusa/hayabusa-2.10.1-lin-musl /opt/hayabusa/hayabusa
RUN chmod +x /opt/hayabusa/hayabusa
RUN /opt/hayabusa/hayabusa update-rules -r /opt/hayabusa/rules/
From alpine
COPY --from=0 /opt/hayabusa /opt/hayabusa
ENV PATH="${PATH}:/opt/hayabusa"
RUN apk add -U bash
WORKDIR /data
RUN mkdir /output && touch /output/notmounted
ADD start.sh /root/start.sh
CMD ["/bin/bash","/root/start.sh"]