-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile.arachni
More file actions
37 lines (29 loc) · 856 Bytes
/
Dockerfile.arachni
File metadata and controls
37 lines (29 loc) · 856 Bytes
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
33
34
35
36
37
# Use Alpine Linux as base for smaller size
FROM alpine:3.18
# Install required packages
RUN apk add --no-cache \
ruby \
ruby-dev \
ruby-bundler \
build-base \
libffi-dev \
openssl-dev \
sqlite-dev \
git \
&& rm -rf /var/cache/apk/*
# Set working directory
WORKDIR /arachni
# Clone Arachni from source (more recent than Docker Hub images)
RUN git clone https://github.com/Arachni/arachni.git . && \
git checkout v1.6.1.3
# Install Arachni dependencies (simplified approach)
RUN bundle install --without development test
# Create necessary directories
RUN mkdir -p /arachni/reports /arachni/logs
# Expose port
EXPOSE 9292
# Set environment variables
ENV ARACHNI_UI_ADDRESS=0.0.0.0
ENV ARACHNI_UI_PORT=9292
# Default command - use arachni_web_ui instead of arachni_web
CMD ["bundle", "exec", "arachni_web_ui"]