first commit
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user