make openssl 1.1 available via /usr/bin/openssl

This commit is contained in:
Dirk 2023-03-20 14:19:35 +01:00
parent 4c54464ab8
commit f65b81837c
2 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,8 @@ RUN apk update && \
addgroup testssl && \ addgroup testssl && \
adduser -G testssl -g "testssl user" -s /bin/bash -D testssl && \ adduser -G testssl -g "testssl user" -s /bin/bash -D testssl && \
ln -s /home/testssl/testssl.sh /usr/local/bin/ && \ ln -s /home/testssl/testssl.sh /usr/local/bin/ && \
mkdir -m 755 -p /home/testssl/etc /home/testssl/bin mkdir -m 755 -p /home/testssl/etc /home/testssl/bin && \
ln -s /usr/bin/openssl1.1 /usr/bin/openssl
USER testssl USER testssl
WORKDIR /home/testssl/ WORKDIR /home/testssl/

View File

@ -2,7 +2,6 @@
FROM alpine:3.17 FROM alpine:3.17
ARG BUILD_VERSION ARG BUILD_VERSION
ARG ARCHIVE_URL=https://github.com/drwetter/testssl.sh/archive/ ARG ARCHIVE_URL=https://github.com/drwetter/testssl.sh/archive/
ARG URL=https://github.com/drwetter/testssl.sh.git ARG URL=https://github.com/drwetter/testssl.sh.git
@ -14,7 +13,8 @@ RUN test -n "${BUILD_VERSION}" \
&& addgroup testssl \ && addgroup testssl \
&& adduser -G testssl -g "testssl user" -s /bin/bash -D testssl \ && adduser -G testssl -g "testssl user" -s /bin/bash -D testssl \
&& ln -s /home/testssl/testssl.sh /usr/local/bin/ \ && ln -s /home/testssl/testssl.sh /usr/local/bin/ \
&& mkdir -m 755 -p /home/testssl/etc /home/testssl/bin && mkdir -m 755 -p /home/testssl/etc /home/testssl/bin \
&& ln -s /usr/bin/openssl1.1 /usr/bin/openssl
USER testssl USER testssl
WORKDIR /home/testssl/ WORKDIR /home/testssl/