-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (18 loc) · 711 Bytes
/
Copy pathDockerfile
File metadata and controls
19 lines (18 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# syntax=docker/dockerfile:1
FROM python:3.12-slim AS build
WORKDIR /src
COPY pyproject.toml README.md ./
COPY gauntlet ./gauntlet
RUN pip wheel --no-cache-dir --wheel-dir /wheels .
FROM python:3.12-slim
LABEL org.opencontainers.image.source="https://github.com/rakshit-737/gauntlet" \
org.opencontainers.image.description="Threat-informed purple-team coverage scoring (lab-only, never executes techniques)" \
org.opencontainers.image.licenses="MIT"
RUN useradd --create-home --uid 10001 gauntlet
COPY --from=build /wheels /wheels
RUN pip install --no-cache-dir /wheels/*.whl && rm -rf /wheels
USER gauntlet
WORKDIR /home/gauntlet
ENV GAUNTLET_DATA_DIR=/data
ENTRYPOINT ["gauntlet"]
CMD ["--help"]