Files
osmedeus/build/docker/Dockerfile.toolbox
T
j3ssie f5f3f89e5d release: v5.1.2 — vulns command, workflow dependency health check, ACP stderr fixes
- Add 'osmedeus vulns' to query findings with severity/template filters and --stats
- health: cross-check workflow dependencies.commands against installed binaries and registry
- linter: flag reports missing the required 'path' field
- db: exclude heavy vulnerability columns by default
- ACP: drain stderr past the scanner limit and read it only after the drain finishes
- Read long target lines from stdin and API target files
- Docker: install native Chromium from the xtradeb PPA
- Registry: add jq, simplify assetfinder install
- Add CHANGELOG.md
2026-10-05 01:27:15 +08:00

72 lines
2.1 KiB
Docker

# Osmedeus Toolbox Dockerfile
# Full-featured image with all security tools pre-installed via direct-fetch
# Based on Ubuntu 24.04 LTS with Python3
FROM ubuntu:24.04
# Prevent interactive prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies, Python3, and Go
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
curl \
wget \
git \
unzip \
jq \
bash \
xz-utils \
python3 \
python3-pip \
python3-venv \
sudo \
golang-go \
&& update-ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Create symlink for python
RUN ln -sf /usr/bin/python3 /usr/bin/python
# Ubuntu 24.04's chromium-browser package is only a stub that installs the snap,
# which cannot run in a container. Install a native build from the xtradeb PPA so
# headless screenshots and crawling (pd-httpx -system-chrome, katana, vigolium) work.
RUN apt-get update && apt-get install -y --no-install-recommends \
software-properties-common \
gpg-agent \
&& add-apt-repository -y ppa:xtradeb/apps \
&& apt-get update && apt-get install -y --no-install-recommends chromium \
&& rm -rf /var/lib/apt/lists/*
# Set up Go environment
ENV PATH="/root/go/bin:${PATH}"
ENV GOPATH="/root/go"
# Create base directories
RUN mkdir -p /root/osmedeus-base /root/workspaces-osmedeus /root/go/bin
WORKDIR /root
# Install osmedeus via official install script
# Note: Using --insecure due to SSL certificate issues in Docker build environment
RUN curl -fsSLk https://www.osmedeus.org/install.sh | bash
# Set up PATH for osmedeus and external binaries
ENV PATH="/root/.local/bin:/root/go/bin:/root/osmedeus-base/external-binaries:${PATH}"
# Run osmedeus health check to verify installation
RUN osmedeus health
# # Install binaries via direct-fetch (including optional ones)
# RUN osmedeus install binary --all true
# Expose default server port
EXPOSE 8002
# Default command shows help
CMD ["osmedeus"]
# enable below for server mode
# CMD ["osmedeus", "serve", "--debug", "--port", "8002", "--host", "0.0.0.0"]