Skip to content

Commit

Permalink
Merge pull request #2557 from drwetter/upgradeDockerstuff2-3.0
Browse files Browse the repository at this point in the history
Try to fix Dockerfile git
  • Loading branch information
drwetter authored Sep 4, 2024
2 parents 66e880a + 878a5df commit 112dfd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'utils/**'
- 'doc/**'
- 'bin/**'
- '.github/workflows/**.yml
- '.github/workflows/**.yml'
- '**.md'
- '**.pem'
- '**.pdf'
Expand Down
7 changes: 4 additions & 3 deletions Dockerfile.git
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@

FROM alpine:3.20

WORKDIR /home/testssl

ARG BUILD_VERSION
ARG ARCHIVE_URL=https://github.com/drwetter/testssl.sh/archive/
ARG URL=https://github.com/drwetter/testssl.sh.git

RUN test -n "${BUILD_VERSION}" \
&& apk update \
&& apk add --no-cache bash procps drill coreutils libidn curl openssl1.1-compat git \
&& git clone --depth 1 --branch ${BUILD_VERSION} $URL /home/testssl \
&& apk add --no-cache bash procps drill git coreutils libidn curl openssl1.1-compat \
&& git clone --depth 1 --branch ${BUILD_VERSION} $URL /home/testssl \
&& addgroup testssl \
&& adduser -G testssl -g "testssl user" -s /bin/bash -D testssl \
&& ln -s /home/testssl/testssl.sh /usr/local/bin/ \
&& mkdir -m 755 -p /home/testssl/etc /home/testssl/bin \
&& ln -s /usr/bin/openssl1.1 /usr/bin/openssl

USER testssl
WORKDIR /home/testssl/

ENTRYPOINT ["testssl.sh"]

Expand Down

0 comments on commit 112dfd3

Please sign in to comment.