Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.git
.gitignore
Dockerfile
README.md
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM ubuntu:25.10 AS builder

RUN apt update && apt install -y build-essential libpcap-dev git && rm -rf /var/lib/apt/lists/*

WORKDIR /build

COPY . .

RUN make -j && make install


FROM ubuntu:25.10

LABEL org.opencontainers.image.title="masscan"
LABEL org.opencontainers.image.source="https://github.com/robertdavidgraham/masscan"
LABEL org.opencontainers.image.licenses="AGPL-3.0"
LABEL org.opencontainers.image.description="TCP port scanner"

RUN apt update && apt install -y libpcap0.8 && rm -rf /var/lib/apt/lists/*

WORKDIR /scan

COPY --from=builder /build/bin/masscan /usr/local/bin/masscan

ENTRYPOINT ["/usr/local/bin/masscan"]