Skip to content

Commit 286bc15

Browse files
committed
rename file
1 parent 1400c78 commit 286bc15

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Dockerfile-alpine

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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

0 commit comments

Comments
 (0)