File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,12 +24,12 @@ RUN go mod download
2424COPY cmd/ ./cmd/
2525COPY internal/ ./internal/
2626
27- # Build main autoar binary from cmd/autoar
28- RUN CGO_ENABLED=0 GOOS=linux go build -o /app/autoar ./cmd/autoar
27+ # Build main autoar binary from cmd/autoar (CGO enabled for naabu/libpcap)
28+ RUN CGO_ENABLED=1 GOOS=linux go build -o /app/autoar ./cmd/autoar
2929
3030# Build entrypoint binary (replaces docker-entrypoint.sh)
3131WORKDIR /app/internal/modules/entrypoint
32- RUN CGO_ENABLED=0 GOOS=linux go build -o /app/autoar-entrypoint .
32+ RUN CGO_ENABLED=1 GOOS=linux go build -o /app/autoar-entrypoint .
3333WORKDIR /app
3434
3535# --- Runtime stage: minimal Debian image ---
@@ -64,12 +64,6 @@ COPY templates/ ./templates/
6464COPY autoar.sample.yaml ./
6565COPY env.example ./
6666
67- # Clone submodules directly
68- RUN cd /app && \
69- rm -rf nuclei_templates Wordlists && \
70- git clone --depth 1 https://github.com/h0tak88r/nuclei_templates.git nuclei_templates && \
71- git clone --depth 1 https://github.com/h0tak88r/Wordlists.git Wordlists
72-
7367# Copy Go tools from builder stage
7468COPY --from=builder /go/bin/ /usr/local/bin/
7569# Copy main autoar binary
You can’t perform that action at this time.
0 commit comments