forked from treadie/docker-arachni
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
32 lines (24 loc) · 776 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ruby:stretch
MAINTAINER treadie.io
ENV VERSION_FRAMEWORK 1.5.1
ENV VERSION_WEBUI 0.5.12
ENV POSTGRES_HOST postgres
ENV POSTGRES_DATABASE arachni_production
ENV POSTGRES_USERNAME arachni
ENV POSTGRES_PASSWORD secret
ENV PATH /opt/arachni/bin:$PATH
## Fetch latest arachni code
RUN mkdir -p /deploy
WORKDIR /deploy
RUN wget \
https://github.com/Arachni/arachni/releases/download/v${VERSION_FRAMEWORK}/arachni-${VERSION_FRAMEWORK}-${VERSION_WEBUI}-linux-x86_64.tar.gz
RUN tar xf *.tar.gz \
&& mv arachni-$VERSION_FRAMEWORK-$VERSION_WEBUI /arachni
## Database setup
WORKDIR /arachni
ADD database.yml system/arachni-ui-web/config/database.yml
## Startup boot manager
ADD scripts/startup.sh /startup.sh
RUN chmod u+x /startup.sh
EXPOSE 9292
CMD ["/startup.sh"]