Skip to content

Commit 7406ffc

Browse files
author
AutoAR Bot
committed
new step in golang world
1 parent be966fa commit 7406ffc

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

Dockerfile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ RUN go mod download
2424
COPY cmd/ ./cmd/
2525
COPY 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)
3131
WORKDIR /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 .
3333
WORKDIR /app
3434

3535
# --- Runtime stage: minimal Debian image ---
@@ -64,12 +64,6 @@ COPY templates/ ./templates/
6464
COPY autoar.sample.yaml ./
6565
COPY 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
7468
COPY --from=builder /go/bin/ /usr/local/bin/
7569
# Copy main autoar binary

0 commit comments

Comments
 (0)