strawberry/Dockerfile
trvon ad1676a594
Some checks failed
Build and Test / build (debug, clang) (push) Has been cancelled
Build and Test / build (debug, gcc) (push) Has been cancelled
Build and Test / build (release, clang) (push) Has been cancelled
Build and Test / build (release, gcc) (push) Has been cancelled
Build and Test / docker (push) Has been cancelled
Integrate features into the daemon, build and docs
Wire the policy, feeds, containment, exec guard, behavior, governor,
crash safety and event store into the daemon, detection pipeline, CLI
and meson build (zstd now required); Dockerfile, conan, systemd unit
(LimitCORE=0, resource limits) and installer updates; existing tests
adapted (store paths are directories now). Detections are counted and
notified even when evidence cannot be persisted (persist_failures in
status). prevention_timeout_ms is clamped and behavior dedupe handles
out-of-order events. Docs: API contract, developer guide, plan, UX,
agent rules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 18:17:30 -06:00

58 lines
1.3 KiB
Docker

FROM ubuntu:24.04 AS base
LABEL org.opencontainers.image.title="Strawberry Security Scanner"
LABEL org.opencontainers.image.description="Linux build/test container for Strawberry"
LABEL org.opencontainers.image.version="0.1.0"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
bash \
ca-certificates \
ccache \
clang \
cmake \
curl \
g++ \
git \
llvm \
make \
meson \
ninja-build \
pkg-config \
python3 \
libbpf-dev \
libssl-dev \
libyara-dev \
nlohmann-json3-dev \
libcurl4-openssl-dev \
libarchive-dev \
libzstd-dev \
&& rm -rf /var/lib/apt/lists/*
ENV PATH="/usr/lib/ccache:${PATH}" \
CC="gcc" \
CXX="g++" \
CCACHE_DIR="/workspace/.ccache"
WORKDIR /workspace
# Self-contained Linux validation stage.
# Build with:
# docker build --target test -t strawberry-linux-test .
FROM base AS test
WORKDIR /src
COPY . /src
RUN meson setup builddir -Denable_tests=true && \
meson compile -C builddir && \
meson test -C builddir --verbose
# Interactive development/build image.
# Run with:
# docker build -t strawberry-linux-dev .
# docker run --rm -it -v "$PWD":/workspace strawberry-linux-dev
FROM base AS dev
CMD ["/bin/bash"]