We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fcac87 commit 63722baCopy full SHA for 63722ba
1 file changed
Dockerfile.git
@@ -0,0 +1,24 @@
1
+# Build using git repo
2
+
3
+FROM alpine:3.14
4
5
+WORKDIR /home/testssl
6
7
+ARG BUILD_VERSION
8
+ARG ARCHIVE_URL=https://github.com/drwetter/testssl.sh/archive/
9
+ARG URL=https://github.com/drwetter/testssl.sh.git
10
11
+RUN test -n "${BUILD_VERSION}" \
12
+ && apk update \
13
+ && apk add --no-cache bash procps drill git coreutils libidn curl socat openssl xxd \
14
+ && git clone --depth 1 --branch ${BUILD_VERSION} $URL /home/testssl \
15
+ && addgroup testssl \
16
+ && adduser -G testssl -g "testssl user" -s /bin/bash -D testssl \
17
+ && ln -s /home/testssl/testssl.sh /usr/local/bin/ \
18
+ && mkdir -m 755 -p /home/testssl/etc /home/testssl/bin
19
20
+USER testssl
21
22
+ENTRYPOINT ["testssl.sh"]
23
24
+CMD ["--help"]
0 commit comments