File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM alpine:3.21 AS base-alpine
2+ RUN apk add --no-cache bash procps drill coreutils libidn curl socat openssl xxd \
3+ && addgroup testssl \
4+ && adduser -G testssl -g "testssl user" -s /bin/bash -D testssl \
5+ && ln -s /home/testssl/testssl.sh /usr/local/bin/testssl.sh
6+
7+ USER testssl
8+ ENTRYPOINT ["testssl.sh"]
9+ CMD ["--help"]
10+
11+ # Final image stage (add testssl.sh project files)
12+ # Choose either one as the final stage (defaults to last stage, `dist-git`)
13+
14+ # 30MB Image (Local repo copy from build context, uses `.dockerignore`):
15+ FROM base-alpine AS dist-local
16+ COPY --chown=testssl:testssl . /home/testssl/
17+
18+ # 38MB Image (Remote repo clone, cannot filter content through `.dockerignore`):
19+ FROM base-alpine AS dist-git
20+ ARG GIT_URL=https://github.com/testssl/testssl.sh.git
21+ ARG GIT_BRANCH
22+ ADD --chown=testssl:testssl ${GIT_URL}#${GIT_BRANCH?branch-required} /home/testssl
You can’t perform that action at this time.
0 commit comments